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#, (AuthorID#, AuthorFirstName AuthorFirstName,, AuthorLastName) 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# 0122 0134
StudentName Smith Smi th Tom
TeacherID 142 108
TeacherName Jones Davis
Teacher_Dept IT IT
Class1 101-01 106-03
Class2 106-09 201-05
Please: 1. Normalize that table structure to the first, first , second and second and third normalization third normalization forms
Class3 113-02 202-01
2. Draw relational schema diagram for the tables defined in the third normalization form above