0% found this document useful (0 votes)
470 views

Assignment 1

This document contains instructions for an assignment involving SQL queries and database normalization. It includes two questions - the first asks to draw an ER diagram for a book database schema, and the second asks to normalize a student invoice table to 1st, 2nd, and 3rd normal forms and draw the resulting schema diagram.

Uploaded by

thuy90
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
470 views

Assignment 1

This document contains instructions for an assignment involving SQL queries and database normalization. It includes two questions - the first asks to draw an ER diagram for a book database schema, and the second asks to normalize a student invoice table to 1st, 2nd, and 3rd normal forms and draw the resulting schema diagram.

Uploaded by

thuy90
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

SQL Assignment 1

For the following requests, pack your answers into the zip file Assignment1_AccountName.zip
then handle to the evaluator via email ([email protected]).

Barem: Q1-30%, Q2.1-40%, Q2.2-30%

Question 1:

Consider the following relations for a database that manage book information in library. The
information include: Book title, Author, Publisher, Category and Book format.

Note:

- Primary Key is mark post-fix with #


- ISBN stands for International Standard Book Number

BOOK_TITLE (ISBN_Number#, Title, PublisherID, PublishedDate, BookFormat, Pages, Price)

BOOK_AUTHOR (ISBN_Number#, AuthorID#)

AUTHOR (AuthorID#, AuthorFirstName, AuthorLastName)

PUBLISHER (PublisherID#, PublisherName)

BOOK_CATEGORY (ISBN_Number#, CategoryID#)

CATEGORY (CategoryID#, CategoryDescription)

BOOK_FORMAT (BookFormat#, FormatDescription)

Draw a relational schema diagram specifying the foreign keys for this schema.

Question 2:

Given the Invoice table with following initial structure (Primary Key is mark post-fix with #)

StudentID# StudentName TeacherID TeacherName Teacher_Dept Class1 Class2 Class3


0122 Smith 142 Jones IT 101-01 106-09 113-02
0134 Tom 108 Davis IT 106-03 201-05 202-01

Please:

1. Normalize that table structure to the first, second and third normalization forms
2. Draw relational schema diagram for the tables defined in the third normalization form
above

You might also like