Mis 205 Final Projectspring 2014

Embed Size (px)

Citation preview

  • 8/10/2019 Mis 205 Final Projectspring 2014

    1/3

    MIS 205 Final Project SPRING 2014

    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.

  • 8/10/2019 Mis 205 Final Projectspring 2014

    2/3

    Hints For Creating the Database:

    A brief logical description of how this restaurant should work. Your database should reflect the logical

    description.

    Customers arrive at the Physical Premises, view the Menu and Order. Orders are handled by different

    Employees. After their meal, a Payment Bill is generated (after calculating any discounts) and the

    customer makes the payment.

    REMEMBER: YOU CAN ADD ADDITIONAL TABLES AND/OR REMOVE TABLES FROM THE ONES I

    PRESCRIBED, PROVIDED THAT YOU ARE FOLLOWING DATABASE RULE. JOINING/HUB TABLES CAN

    ALSO BE ADDED IF AND WHERE NECESSARY. YOU HAVE FULL LIBERTY TO NAME THE

    TABLES/FIELDS/RECORDS AS YOU PLEASE.

    SQL Queries

    After completion of the database, you should be able to answer at least THREE (3) each (Total 12 SQL

    Statements) of the following groups of SQL statements using your newly created database.

    1.

    Simple queries: Be able to select any number of fields from a single table and then narrow down

    the records based on specific criteria. You should also be able to gather DISTINCT columns and

    ORDER them BY either ascending or descending order.(3 Queries)

    2. Complex queries: These queries are based on complex AND/OR operations involving brackets

    where REQUIRED. (3 Queries)

    3.

    Mathematical Queries: In these queries you will perform mathematical operations on

    quantitative data inside your tables using SQL statements. (Average, Sum, Min, Max, Count,

    Between etc)(3 Queries)

    4. Wildcard Queries: Queries involving LIKE Operations. Make them as complex as you can.

    Possibly by combining them with AND/OR Operations. (3 Queries)

    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!

  • 8/10/2019 Mis 205 Final Projectspring 2014

    3/3

    1.

    Design database (tables, primary key, foreign key, relationships) and enter at least 10

    valid/meaningful records in each table.

    REMEMBER: Connecting Correct keys

    REMEMBER: Minimizing Cyclic relationships

    REMEMBER: Normalizing database so that each table includes only related fields

    REMEMBER: To make sure not to create a relationship that would eventually result in

    repetition of primary keys.

    2.

    Design SQL Queries

    Design and successfully Run at least three from each section of SQL Queries described above. What

    information you find is entirely up to you.

    Save your queries inside the database.

    3.

    Database submission

    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.