Database Design II (Case Studies: Step 2) IST 210: Organization of Data IST2101
COURSE REGISTRATION SYSTEM Case study IST2102
3 STUDENT(StudentID, Name, , DepartName) DEPARTMENT(DepartName, Building, Phone) COURSE(CourseID, CourseName, Instructor, DepartName) GRADE(StudentID, CourseID, Grade)
IST2104 STUDENT(StudentID, Name, , DepartName) DEPARTMENT(DepartName, Building, Phone) COURSE(CourseID, CourseName, Instructor, DepartName) GRADE(StudentID, CourseID, Grade) Column NameData TypeKeyRequiredRemarks DepartName Building Phone DEPARTMENT
IST2105 STUDENT(StudentID, Name, , DepartName) DEPARTMENT(DepartName, Building, Phone) COURSE(CourseID, CourseName, Instructor, DepartName) GRADE(StudentID, CourseID, Grade) Column NameData TypeKeyRequiredRemarks StudentID Name DepartName STUDENT
IST2106 STUDENT(StudentID, Name, , DepartName) DEPARTMENT(DepartName, Building, Phone) COURSE(CourseID, CourseName, Instructor, DepartName) GRADE(StudentID, CourseID, Grade) Column NameData TypeKeyRequiredRemarks CourseID CourseName Instructor DepartName COURSE
IST2107 STUDENT(StudentID, Name, , DepartName) DEPARTMENT(DepartName, Building, Phone) COURSE(CourseID, CourseName, Instructor, DepartName) GRADE(StudentID, CourseID, Grade) Column NameData TypeKeyRequiredRemarks StudentID CourseID Grade GRADE
LISA’S BOOKSTORE Case study IST2108
9 PUBLISHER(PublisherName, Location, Phone) BOOK(BookID, Title, Year, PublisherName) AUTHOR(AuthorID, Name, Country) BOOK_AUTHOR(BookID, AuthorID) PURCHASE(PurchaseID, Price, Date, BookID, Address) CUSTOMER( Address, Name, Address, Phone) EVENT(EventID, Name, Date, Type) CUSTOMER_EVENT( Address, EventID) E-R diagram is transformed into a database with 8 tables
IST21010 PUBLISHER(PublisherName, Location, Phone) BOOK(BookID, Title, Year, PublisherName) AUTHOR(AuthorID, Name, Country) BOOK_AUTHOR(BookID, AuthorID) PURCHASE(PurchaseID, Price, Date, BookID, Address) CUSTOMER( Address, Name, Address, Phone) EVENT(EventID, Name, Date, Type) CUSTOMER_EVENT( Address, EventID) Column NameData TypeKeyRequiredRemarks PublisherName Location Phone PUBLISHER
IST21011 PUBLISHER(PublisherName, Location, Phone) BOOK(BookID, Title, Year, PublisherName) AUTHOR(AuthorID, Name, Country) BOOK_AUTHOR(BookID, AuthorID) PURCHASE(PurchaseID, Price, Date, BookID, Address) CUSTOMER( Address, Name, Address, Phone) EVENT(EventID, Name, Date, Type) CUSTOMER_EVENT( Address, EventID) Column NameData TypeKeyRequiredRemarks BookID Title Year PublisherName BOOK
IST21012 PUBLISHER(PublisherName, Location, Phone) BOOK(BookID, Title, Year, PublisherName) AUTHOR(AuthorID, Name, Country) BOOK_AUTHOR(BookID, AuthorID) PURCHASE(PurchaseID, Price, Date, BookID, Address) CUSTOMER( Address, Name, Address, Phone) EVENT(EventID, Name, Date, Type) CUSTOMER_EVENT( Address, EventID) Column NameData TypeKeyRequiredRemarks AuthorID Name Country AUTHOR
IST21013 PUBLISHER(PublisherName, Location, Phone) BOOK(BookID, Title, Year, PublisherName) AUTHOR(AuthorID, Name, Country) BOOK_AUTHOR(BookID, AuthorID) PURCHASE(PurchaseID, Price, Date, BookID, Address) CUSTOMER( Address, Name, Address, Phone) EVENT(EventID, Name, Date, Type) CUSTOMER_EVENT( Address, EventID) Column NameData TypeKeyRequiredRemarks BookID AuthorID BOOK_AUTHOR
IST21014 PUBLISHER(PublisherName, Location, Phone) BOOK(BookID, Title, Year, PublisherName) AUTHOR(AuthorID, Name, Country) BOOK_AUTHOR(BookID, AuthorID) PURCHASE(PurchaseID, Price, Date, BookID, Address) CUSTOMER( Address, Name, Address, Phone) EVENT(EventID, Name, Date, Type) CUSTOMER_EVENT( Address, EventID) Column NameData TypeKeyRequiredRemarks Address Name Address Phone CUSTOMER
IST21015 PUBLISHER(PublisherName, Location, Phone) BOOK(BookID, Title, Year, PublisherName) AUTHOR(AuthorID, Name, Country) BOOK_AUTHOR(BookID, AuthorID) PURCHASE(PurchaseID, Price, Date, BookID, Address) CUSTOMER( Address, Name, Address, Phone) EVENT(EventID, Name, Date, Type) CUSTOMER_EVENT( Address, EventID) Column NameData TypeKeyRequiredRemarks PurchaseID Price Date BookID Address PURCHASE
IST21016 PUBLISHER(PublisherName, Location, Phone) BOOK(BookID, Title, Year, PublisherName) AUTHOR(AuthorID, Name, Country) BOOK_AUTHOR(BookID, AuthorID) PURCHASE(PurchaseID, Price, Date, BookID, Address) CUSTOMER( Address, Name, Address, Phone) EVENT(EventID, Name, Date, Type) CUSTOMER_EVENT( Address, EventID) Column NameData TypeKeyRequiredRemarks EventID Name Date Type EVENT
IST21017 PUBLISHER(PublisherName, Location, Phone) BOOK(BookID, Title, Year, PublisherName) AUTHOR(AuthorID, Name, Country) BOOK_AUTHOR(BookID, AuthorID) PURCHASE(PurchaseID, Price, Date, BookID, Address) CUSTOMER( Address, Name, Address, Phone) EVENT(EventID, Name, Date, Type) CUSTOMER_EVENT( Address, EventID) Column NameData TypeKeyRequiredRemarks Address EventID CUSTOMER_EVENT