Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

We have two tables with the following scheme, where AX and BC are the keys and t

ID: 3623168 • Letter: W

Question

We have two tables with the following scheme, where AX and BC are the keys and the AC input is key in BC:
A (X: Integer, Y: Integer, c: string)
B (C string, Z: real)
What does the following SQL command:
SELECT B. *
FROM B
C WHERE NOT IN (SELECT C
FROM A)

a)SQL command returns all entries in A that are not matched in B
b)SQL command that returns all records in B that are not matched in A
c)SQL command returns all entries that are identical in B and A records but not duplicated
d)SQL command returns all entries in column B and C of Table A


We have two tables with the following scheme, where AX and BC are the keys and the AC input is key in BC:
A (X: Integer, Y: Integer, c: string)
B (C string, Z: real)
SQL command to find the highest Y value in A is




a)SELECT MAX(DISTINCT Y)
FROM A

b)SELECT MAX(Y)
FROM A

c)SELECT Y
FROM A
WHERE Y=MAX(Y)

d)SELECT DISTINCT MAX(Y)
FROM A


The three values logic returns TRUE OR (FALSE OR NOT (Unknown)) valu



a)FALSE
b)UNKNOWN
c)TRUE
d)NULL

Explanation / Answer

Dear,
1)
a)SQL command returns all entries in A that are not matched in B
b)SQL command that returns all records in B that are not matched in A
c)SQL command returns all entries that are identical in B and A records but not duplicated
d)SQL command returns all entries in column B and C of Table A

2)
a)SELECT MAX(DISTINCT Y) FROM A   returns maximum value y from A  (TRUE)

b) SELECT MAX(Y) FROM A   - returns TRUE

c) SELECT Y FROM A WHERE Y=MAX(Y) it results in error

d)SELECT DISTINCT MAX(Y) FROM A TRUE

Hope this will help you








Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote