SLIDE 1
1 and customer name for customers who order it. Display product - - PDF document
1 and customer name for customers who order it. Display product - - PDF document
Q1: What is the output of the following SQL or PL/SQL code segments SQL Statement OUTPUT Select Cname , Pname, Quantity From Customers C , Products P, Order O 1 Where C.Cid = O.Cid AND P.Pid = O.Pid AND Region = Irbid; Select Pname
SLIDE 2
SLIDE 3
Page 3 CIS 421 Second Exam
Q5: Write a PL/SQL program that will Display customer name for customers whose region is ‘Irbid’.
SLIDE 4
Page 4 CIS 421 Second Exam
Consider the following Relational database schema and state when answering the exam questions.
Products (Pid, Pname, Pprice$, Category, Product, Expiry)
Orders (Cid, Pid, Quantity) SalesPerson (Sid, Sname, Region, Type, Quota$, Salary, Work_hrs, overtime) Customers (Cid, Cname, Region)
Pid Pname Pprice$ Category Product Expiry 1 disks 100 Furniture 1-Nov-11 2 PCs 700 Office 3-Oct-12 3 MACs 800 Office 3-Oct-12 4 Tuna 5 Food 9-Jun-16 11-Jun-17 5 Shirt 25 Cloth 2-Sep-16 6 Yogurt 15 Food 6-May-16 26-May-16
Products
Cid Pid Quantity 1 2 1 2 2 2 3 3 2 4 1 3 5 4 1
Orders SalesPerson
Sid Sname Region Type Quota$ Salary Work_hrs
- vertime