Refer to Schema A. Which query correctly shows only the tota…
Refer to Schema A. Which query correctly shows only the total quantity for order ID 5001? A ) SELECT SUM(T.qty) FROM tblORDER T WHERE T.orderID = 5001; B ) SELECT SUM(T.qty) FROM tblORDER T GROUP BY T.orderID HAVING T.orderID = 5001; C ) SELECT T.qty FROM tblORDER WHERE T.orderID = 5001; D ) SELECT SUM(T.qty) FROM tblORDER WHERE T.orderID = 5001;
Read DetailsExtra Credit (2 points) I understand that immediately after…
Extra Credit (2 points) I understand that immediately after completion of each part of the exam – I must submit the pictures of my: Cheat Sheet (even if blank) Scratch paper (even if blank) I understand the failure to do so will result in loss of extra credit points; and also potentially a zero on the exam.
Read DetailsRefer to Schema B. What is the result of the following? WITH…
Refer to Schema B. What is the result of the following? WITH LoanCount AS ( SELECT L.memID ,COUNT(*) AS [Num] FROM tblLOAN L GROUP BY L.memID ) SELECT M.lastName ,LC.[Num] FROM tblMEMBER M JOIN LoanCount LC ON M.memID = LC.memID WHERE LC.[Num] >= 2;
Read Details