The following relational database schema stores information about a restaurant. The primary keys are underlined and field types are omitted. Study the schema and its corresponding description to answer the questions Customer (cid, cname, cage, caddress, cphone) Table (tno, capacity, availability) Item (iid, iname, price) Order ( oid, cid, iid, tno, quantity) Employee (eid, ename, eaddress, eage, salary) Reservation (rid, eid, cid, date, time) The customer is someone who eats in the restaurant. The Customer relation provides customer id, the name, age, address and phone number information. The Table relation gives the restaurant's occupancy information that includes the table number, the number of people who can sit on the table, and the table's availability information. The restaurant serves several items. Each of the Items has an identification number (e.g 82285), name (e.g, salad), and unit price (e.g.,$15). Soon after arrival in the restaurant a customer places an order. Order relation contains order id, customer id, ordered items id, each item's quantity. Each order contains one or more items, and the quantity of each item (e.g., order 10 contains one soup and two salads). Here we are assuming that a customer can visit the restaurant at most once in a day and can't place multiple orders at a time. Restaurant employees serve customers. The Employee relation contains employee id, name, address, age, and salary information. The customer can make a reservation in the restaurant beforehand. The Reservation relation records reservation, employee, and customer ids, and reservation date and time. In this question, you will only deal with querying part of SQL. You are NOT allowed to tamper with (change the contents of) the database, i.e., CREATE, INSERT, DELETE ALTER, UPDATE etc. Write a stored procedure to create a report that shows the employees who made the reservation from “23 rd march 2021” till “Today” having number of reservations greater than 5

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

The following relational database schema stores information about a restaurant. The primary keys are underlined and field types are omitted. Study the schema and its corresponding description to answer the questions

Customer (cid, cname, cage, caddress, cphone)

Table (tno, capacity, availability)

Item (iid, iname, price) Order ( oid, cid, iid, tno, quantity)

Employee (eid, ename, eaddress, eage, salary)

Reservation (rid, eid, cid, date, time)

The customer is someone who eats in the restaurant. The Customer relation provides customer id, the name, age, address and phone number information. The Table relation gives the restaurant's occupancy information that includes the table number, the number of people who can sit on the table, and the table's availability information. The restaurant serves several items. Each of the Items has an identification number (e.g 82285), name (e.g, salad), and unit price (e.g.,$15). Soon after arrival in the restaurant a customer places an order. Order relation contains order id, customer id, ordered items id, each item's quantity. Each order contains one or more items, and the quantity of each item (e.g., order 10 contains one soup and two salads). Here we are assuming that a customer can visit the restaurant at most once in a day and can't place multiple orders at a time. Restaurant employees serve customers. The Employee relation contains employee id, name, address, age, and salary information. The customer can make a reservation in the restaurant beforehand. The Reservation relation records reservation, employee, and customer ids, and reservation date and time. In this question, you will only deal with querying part of SQL. You are NOT allowed to tamper with (change the contents of) the database, i.e., CREATE, INSERT, DELETE ALTER, UPDATE etc.

  1. Write a stored procedure to create a report that shows the employees who made the reservation from “23 rd march 2021” till “Today” having number of reservations greater than 5
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY