Professional Documents
Culture Documents
ITEC224 Conceptual DB Design Example
ITEC224 Conceptual DB Design Example
Programming
Conceptual Database Design Example
Learning Objectives
• Conceptual Database Design
• Documentation for Conceptual Database Design
Conceptual Database Design
• Build a local conceptual data model for each specific user view
• User view is the data required by a particular user to make a decision
or perform some task
• Start with data and transaction requirements
Case Study : Online Bookstore
• EMU Bookstore sells books to students and other customers : in store
and online
• Instructors order textbooks for their courses through a web interface.
• Director of each department approves of the textbook orders for
his/her department
• Director of the bookstore may oversee all orders placed in EMU
Case Study : Online Bookstore
• Identify the users
• Online Customers
• Bookstore personnel
• Instructors
• Departmental Directors (Academic)
• Administrator
• Interview each user group to gather the detailed requirements in
terms of transactions and data
Case Study : Online Bookstore
• Instructor –Data Requirements
• Each instructor may order at the most 10 text or reference books each
semester.
• For each text/reference book ordered, the instructor specifies the course
and the number of students who will be taking the course.
• Each course has a unique coursecode, a title. An instructor may teach
many courses.
• Each book has a title, a unique ISBN number and a publisher.
• Also a book may have more than one author.
• An instructor may write reviews about the books he/she has ordered
Case Study : Online Bookstore
• Instructor- Transaction Requirements
• Create a text/reference book order form.
• Enter information about a book that doesn’t exist in the database :book isbn,
title, authors and publisher
• List all courses he/she teaches
• Print a copy of the order form
• Add a review to the book entry
Case Study : Online Bookstore
• Online customers – Data Requirements
• A customer may order one or more books online.
• Each customer must supply his/her name, address and phone number.
• Each book has a title, an ISBN and a price in addition to the subject category,
publisher and one or more authors
Case Study : Online Bookstore
• Online Customer-Transaction requirements
• Search books using title/ISBN
• Search for a book that contains certain keywords.
• Find text/reference books of a given course using the course title and/or
coursecode
• Buy books : create an order that may contain one or more books
• List all the orderd placed so far.
• Administrator
...
• Director
...
Conceptual DB Design
• 1. Build local conceptual Data Model
• 1.1 Identify Entity Types
Instructor : Book, Textbook?, ReferenceBook?, Course, Author, Review?, Order
Online Customer : Book, Course, Order, Customer
Director : Instructors, courses, coursegroups, Textbooks