Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Designing a Database
Database Submission Date: Wednesday 2nd April 2014
Database Defense Date: TBA
Your task is to create a fully functional database which can be used to answer any and all relevant SQL
Queries. I shall only provide brief guidelines and you are at full liberty to design/modify your database in
any way you see fit within logical database boundaries.
Topic: Restaurant
Description: Mr. Smith has managed the Finances and is hoping to open a small restaurant. He has
rented a space in a busy commercial area which is going to be the premises for the restaurant. Smith
has decided to serve Chinese and Thai food and has hired 2 cooks and a number of employees
(cleaners, waiters, security guards etc). Apart from Dine-In Services, Smith has also decided that the
restaurant will have:
Take-away/delivery system : Customer order taken by attendant. Food is prepared. Food is Delivered to
Customer provided address.
Privilege Customer Membership: Frequent Customer Information is recorded. Special discounts and
offers are sent to customers over phone or email.
Typical Tables that may be present in such a database:
Customer: Stores Customer Demographic Information (Repeat Customers and Delivery Customers Only)
Employees: Demographic Information on Employees, (Cooks, Cleaners etc.)
Physical Premises: Information on Chairs, Tables, Music System and any other physical properties
belonging to the Restaurant.
Menu: Contains Information on the Food Served.
Payment: Information on Customer Payments (Only). Should also contain discount information.
Orders: Records Dine-In and Take-Away orders made for food. May also contain delivery Information.
5. Joining Queries: Here you are required to join and extract relevant information from several
tables. More than two tables should be joined in each query. However, you must join the tables
for a valid reason and not just for the sake of joining. (3 Queries)
Project Guidelines: What you need to do!
1. Design database (tables, primary key, foreign key, relationships) and enter at least 10
valid/meaningful records in each table.
A few days prior to your presentation, you have to submit your newly created database file and a word
document (Inside a zip file). The word file should contain your names and copy/pasted SQL statements
from the database.
4. Presentation/Project Defense
You are required to defend your project on a specified day when I will ask individual members about the
structure of the database as well as the queries he/she has worked on.
What your group has to do is split the 12 or more queries you created amongst each other so that every
member has some queries to present. All members must know about the basic structure of the
database. I will ask questions to each member individually ONLY on the queries he/she has worked on.
Scoring will be based on entire groups performance.