Answered step by step
Verified Expert Solution
Question
1 Approved Answer
[ 1 2 : 4 8 PM , 1 2 / 1 6 / 2 0 2 3 ] + 1 ( 9 1 7
: PM: customer cid name, email, dob ordr oid cid, tim
ordritemoid pid, qty
product pid name, price
It's a schema for a store: customer table has customer information, ordr has order information links to customer via cad and ordritem inks to ordr via old has order lineiters and quantity and link to products via pid.
Find customer id of John Doc.
a select cid from customer where name John Doe'
b select name from customer where fname John' and Iname'Doe'
c select from customer where name John Doe'
d select cid from customer where fname John' and Iname'Doe'
e Other:
: PM: Multiplechoice exam: select the answer that best answers the question. Each question is worn
points. You get point for leaving the answer blank. If no answer is appropriate, write your own the e answer
For the below questions, use the following schema definition.
customer cid name, email, dob ordr oid cid, tim
ordritemoid pid, qty
product pid name, price
It's a schema for a store: customer table has customer information, ordr has order information links to customer via cad and ordritem inks to ordr via old has order lineiters and quantity and link to products via pid.
Find customer id of John Doc.
a select cid from customer where name John Doe'
b select name from customer where fname John' and Iname'Doe'
c select from customer where name John Doe'
d select cid from customer where fname John' and Iname'Doe'
e Other:
Find name and price of product
a select pid, price from product where pid
b select name, price from product having pid
c select from product with pid
d select name, price from product where pid
c Other:
Find customer id for order
a select cid from customer a inner join ordr b on cid where oid
b select cid from customer a
left outer join ordr b usingcid where oid
c select cid from ordr where oid
d select name, cid, dob from ordr where oid
e Other:
Find customer name for order
a select from ordr a
natural inner join customer b using acidbcid where oid
b select name from ordr a
inner join customer b on acidbcid where
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started