Skip to content

yogeshwarreddy/database_concepts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DATABASE CONCEPTS

Assignment

You Need to do the following things in your database assignment: (Total 100 marks)

  1. Create Entity - Relation Diagram for the restaurants management system. (20 marks)
  2. Pick Customers module of the ER Diagram and created the Tables with Proper relationships. (30 marks) Module details: Restaurant's Customers including order, menu(including price). Billing.
  3. Insert some data. For the below things you can assume your own business requirement and do the followings things.
  4. Create following Views: (10 marks) vw_customerSnapshot : To show customer with most visits, and customer Details. vw_OrderSnapshot: To show Most Ordered Item, and item details.
  5. Create a function to fetch the time since order was placed by a customer. (10 marks) fn_GetOrderTimeElapsed(CustomerID)
  6. Create a Procedure to get Order for a customer (15 marks) sp_GetOrder(IN CustomerID) (Returns Order Details as a Table)
  7. Create a Procedure to Generate bill for an order. (15 marks) sp_GenerateBill(IN OrderID, OUT Bill_AMT)

Schema

Rough sketch

Final Schema

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published