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. i. Write a stored procedure to find the name of the employee which are highly paid and have age greater than 30? age greater

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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.
i. Write a stored procedure to find the name of the employee which are highly paid and have age greater than 30?
age greater

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Transaction Processing
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education