Question

In: Computer Science

Design and implement a database for restaurant At the end you will submit a report that...

Design and implement a database for restaurant

At the end you will submit a report that has the following:

1-Describe the scenario of your database, what does it include, and what are the assumptions you have.

2-Draw an Entity-Relationship Diagram (ERD)

3-Write the schemas for 2 entities and 2 relationships

4- Compose two or three possible queries in written English and SQL that you can get from the database.

please l need the answer for this assignment.

Solutions

Expert Solution

Ans:1 It Describe follow scenario for restaurant Database

1. Restaurant(Name, Contact_no, Address)

2. Manager(Name, Contact_no,id_no)

3. Order(Order_no, No_of_items)

4. Cheff(Number, id_no)

5. Item(item_no, Description, Price, Quality)

6. Waiter(Name, Id_no)

7. Customer(Name, Address, Contact_no, Customer_id)

8. Bill(Bill_no, Price, Order_detail)

9. Cashier(Id_no, Name)

Ans:2 ER diagram for Restaurant

Ans:3 Schema for Entity and Relationship

Entity:

they define multivalue attribute,they describe other entity and often have one to many relation.

Customer(Customer_id, Name, Address, Contact_no)

Bill(Bill_no, Price, Order_detail)

Relationship:

Relation is away that hold table(Schema) together, They are used to connect related info between table.

Relation strength is base on how the primary key of related entity is define.

Customer(Customer_id, Name, Address, Contact_no)

Order(Order_no, No_of_items)

Ans:4 Below are some query regarding restaurant database

1. SELECT Name FROM Customer LIMIT 5;

2. SELECT Order_no FROM Order WHERE No_of_item > 5;

3. SELECT Bill_no FROM Bill WHERE Price > 1000:


Related Solutions

Submit a memo to the owner of a pizza restaurant that you work at. This is...
Submit a memo to the owner of a pizza restaurant that you work at. This is the format the teacher asked us to submit it as. No closing name at the end. Please check for sentence structure &/or suggestions. Date:             April 8, 2019 To:                  Carmine Stellato, Owner From:             Krista Kamman, Marketing Manager Subject:        Improving Competitive Edge with Customers As requested, I have researched three competitors in the area and have studied their pizza ordering and serving procedures. Here...
Design the database using the ER approach. Then using Java and SQL, implement the following functionality:...
Design the database using the ER approach. Then using Java and SQL, implement the following functionality: Implement a button called “Initialize Database”. When a user clicks it, all necessary tables will be created (or recreated) automatically, with each table be populated with at least 10 tuples so that each query below will return some results. All students should use the database name “sampledb”, username “john”, and password “pass1234”. Implement a user registration and login interface so that only a registered...
Design and implement a relational database application of your choice using MS Workbench on MySQL a)...
Design and implement a relational database application of your choice using MS Workbench on MySQL a) Declare two relations (tables) using the SQL DDL. To each relation name, add the last 4 digits of your Student-ID. Each relation (table) should have at least 4 attributes. Insert data to both relations (tables); (15%) b) Based on your expected use of the database, choose some of the attributes of each relation as your primary keys (indexes). To each Primary Key name, add...
At the end of the term each student must submit a research design paper. It should...
At the end of the term each student must submit a research design paper. It should be a self-conscious application of course materials. You should choose a topic of personal interest to you. This paper may build on any of your previous work. In 10-12 pages, your research design paper should include the followings. (1) A sketch of a research project that indicates the previous research to which it is related, the contribution that it will make, the methods of...
Database __________ which is the logical design of the database, and the database _______ which is...
Database __________ which is the logical design of the database, and the database _______ which is a snapshot of the data in the database at a given instant in time. a) Instance, Schema b) Relation, Schema c) Relation, Domain d) Schema, Instance
True or False: Logical database design is the process of modifying the physical database design to...
True or False: Logical database design is the process of modifying the physical database design to improve performance. The two major logical database design techniques are conversion of E-R diagrams to relational tables and data normalization. Multivalued attributes are not permitted in unnormalized data. A many-to-many binary relationship in an E-R diagram requires the creation of a total of three tables in a relational database. A one-to-one unary relationship in an E-R diagram requires the creation of a total of...
The owner of Horne Design Wallcoverings has hired you as a consultant to design a database...
The owner of Horne Design Wallcoverings has hired you as a consultant to design a database management system for his chain of three stores that sell wallpaper and accessories. He would like to track sales, customers and employees. After initial meeting with him, you have developed a list of business rules and specifications to begin the design of an E-R Model. The list of business rules are: Customers place orders through a branch A customer may place many orders A...
Creating a Database Design Lab 1: Creating a Database Design (Wk 3) - OR - Draw...
Creating a Database Design Lab 1: Creating a Database Design (Wk 3) - OR - Draw with pencil and paper diagram (take photo of it and submit) along with a summary of the diagram you prepared in a Word document. Use the scenario from Assignment 1: Business Rules and Data Models to complete the lab: Suppose a local college has tasked you to develop a database that will keep track of students and the courses that they have taken. In...
Database You have just started a new position on the database design staff at Gizmonic Consultants,...
Database You have just started a new position on the database design staff at Gizmonic Consultants, Inc. Your first project is to translate the database requirements for Continental Hotels into an ER representation. In the next project, you will derive a relational schema from an ER diagram and implement the schema, populate it, and query over it. Requirements: Develop an ERD to capture the entities and relationships specified in the requirements documentation below. Use only the conventions covered in class....
You are hired to design a database for a fitness center. As the fitness center is...
You are hired to design a database for a fitness center. As the fitness center is expanding with more than one branch, they want to create a database to keep track of its customers, facilities and employees. Each branch has a unique id and address (building number, street, district, and city). A branch may have more than one facility (e.g. swimming pool, spa, etc.). Each facility must belong to only one branch, and the information for a facility is name...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT