Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Which of the following queries shows the above result if it is applied to the above database state? a ) SELECT DISTINCT CUSTOMER _ ID

Which of the following queries shows the above result if it is applied to the above database state?
a) SELECT DISTINCT CUSTOMER_ID AS ID FROM SALESMAN S JOIN ORDERS O ON
S.SALESMAN_ID=O.SALESMAN_ID WHERE COMMISSION BETWEEN 0.14 AND 0.15 ;
b) SELECT DISTINCT CUSTOMER_ID AS ID FROM SALESMAN S JOIN ORDERS O ON
S.SALESMAN_ID=O.SALESMAN_ID WHERE COMMISSION IN (0.12,0.13);
c) SELECT DISTINCT CUSTOMER_ID AS ID FROM SALESMAN S JOIN ORDERS O ON
S.SALESMAN_ID=O.SALESMAN_ID WHERE COMMISSION > ALL (0.13,0.14);
d) None of the above.
Consider the following database state and SQL query result.
ORDERS
Which of the following queries shows the above result if it is applied to the above database state?
a) SELECT DISTINCT ORD_NO FROM SALESMAN S, ORDERS O WHERE
S.SALESMAN_ID=O.SALESMAN_ID AND COMMISSION IN (0.11,0.14);
b) SELECT DISTINCT ORD_NO FROM SALESMAN S, ORDERS O WHERE
S.SALESMAN_ID=O.SALESMAN_ID AND COMMISSION > ANY (0.11,0.14);
c) SELECT DISTINCT ORD_NO FROM SALESMAN S, ORDERS O WHERE
S.SALESMAN_ID=O.SALESMAN_ID AND COMMISSION BETWEEN 0.11 AND 0.14 ;
d) None of the above.
Does the following relational schema correctly map the ER schema diagram?
a) Correct
b) Not correct
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Linked Data A Geographic Perspective

Authors: Glen Hart, Catherine Dolbear

1st Edition

1000218910, 9781000218916

More Books

Students also viewed these Databases questions