CIS336 Week 6 Quiz – Study Guide – Instant Delivery

Lab Price = $10
Please feel free to send us your queries at: support@iqrajavaid.com

P.S: This is just a study guide. The questions may not appear exactly like this.
Payment methods

Add to Cart

Buy Now

View Cart


Problem Statement

(TCO 7) Which is NOT an aggregate function? (Points : 3)
SUM
COUNT
ROUND
MAX

Question 2.2. (TCO 7) Which of the following is the correct order for the indicated clauses? (Points : 3)
WHERE, HAVING, GROUP BY
HAVING, WHERE, GROUP BY
GROUP BY, HAVING, ORDER BY
ORDER BY, GROUP BY, HAVING

Question 3.3. (TCO 7) Given the books table described below, which of the following will display each category along with the average price of books in that category?
books: bookid(PK), ISBN, title, pubdate, cost, retail, category, pubid(FK) (Points : 3)
SELECT category, AVG(retail) FROM books;
SELECT AVG(retail) FROM books GROUP BY category;
SELECT category, AVG(retail) FROM books GROUP BY category;
SELECT category, AVG(retail) FROM books GROUP BY category, retail;

Question 4.4. (TCO 7) Given the books table described below, which of the following will list retail price of the most expensive book in the COMPUTER category?
books: bookid(PK), ISBN, title, pubdate, cost, retail, category, pubid(FK) (Points : 3)
SELECT MAX(retail) FROM books GROUP BY category;
SELECT MAX(retail) FROM books WHERE category = ‘COMPUTER’;
SELECT MAX(retail) FROM books HAVING category = ‘COMPUTER’;
SELECT retail FROM (SELECT MAX(retail) FROM books);

Question 5.5. (TCO 7) Which of the values listed below can be returned by a subquery referenced as follows?
WHERE vendorid = (subquery) (Points : 3)
A single value
A column of one or more rows
A table
A subquery can’t be used in this way.

Question 6.6. (TCO 7) What type of subquery is executed only once for the entire query? (Points : 3)
Correlated
Uncorrelated
Inner
Outer

Question 7.7. (TCO 7) Given the two tables described below, which of the following queries will display the names of the customers whose orders have shipped?
customer: with the fields customerid(PK), lastname, firstname
order: with the fields orderid(PK), orderdate, shipdate, customerid(FK) (Points : 3)

SELECT lastname, firstname FROM customer WHERE customerid = (SELECT customerID FROM order WHERE shipdate = orderdate);

SELECT lastname, firstname FROM customer WHERE customerid = (SELECT customerID FROM order WHERE orderID IS NULL);

SELECT lastname, firstname FROM customer WHERE customerid = (SELECT customerID FROM order WHERE shipdate IS NULL);

SELECT lastname, firstname FROM customer WHERE customerid = (SELECT customerID FROM order WHERE shipdate IS NOT NULL);

Question 8.8. (TCO 7) Given the two tables described below, which of the following queries will display number of orders shipped?
customer: with the fields customerid(PK), lastname, firstname
order: with the fields orderid(PK), orderdate, shipdate, customerid(FK) (Points : 3)
SELECT COUNT(shipdate) FROM order;
SELECT COUNT(*) FROM order WHERE shipdate IS NULL;
SELECT COUNT(*) FROM order WHERE orderdate IS NOT NULL;
SELECT COUNT(shipdate) FROM order GROUP BY customerid;

Question 9.9. (TCO 7) Given the books table described below, which of the following will display the average retail price of books?
books: bookid(PK), ISBN, title, pubdate, cost, retail, category, pubid(FK) (Points : 3)
SELECT COUNT(retail) FROM books;
SELECT SUM(retail) FROM books;
SELECT AVG(retail) FROM books;
SELECT AVG(retail) FROM books GROUP BY category;

Question 10.10. (TCO 7) Which of these scenarios would justify the usage of a subquery? (Points : 3)
When we need to sum up values
When we need to convert string data into date or number values
When we need to select rows from a table with a condition that depends on the data from a different table
No way to tell without an ERD

Relevant Material
Instructions
* If you want to purchase multiple products then click on “Buy Now” button which will give you ADD TO CART option.Please note that the payment is done through PayPal.
* You can also use 2CO option if you want to purchase through Credit Cards/Paypal but make sure you put the correct billing information otherwise you wont be able to receive any download link.
* Your paypal has to be pre-loaded in order to complete the purchase or otherwise please discuss it with us at support@iqrajavaid.com.
* As soon as the payment is received, download link of the solution will automatically be sent to the address used in selected payment method.
* Please check your junk mails as the download link email might go there and please be patient for the download link email. Sometimes, due to server congestion, you may receive download link with a delay.
* All the contents are compressed in one zip folder.
* In case if you get stuck at any point during the payment process, please immediately contact us at support@iqrajavaid.com and we will fix it with you.
* We try our best to reach back to you on immediate basis. However, please wait for atleast 8 hours for a response from our side. Afterall, we are humans.
* Comments/Feedbacks are truely welcomed and there might be some incentives for you for the next lab/quiz/assignment.
* In case of any query, please donot hesitate to contact us at support@iqrajavaid.com.
* MOST IMPORTANT Please use the tutorials as a guide and they need NOT to be used for any submission. Just take help from the material.
******************************************** Good Luck ***************************************************
Privacy Policy
We take your privacy seriously and will take all measures to protect your personal information.
Any personal information received will only be used to fill your order. We will not sell or redistribute your information to anyone.
Refund Policy
Incase you face any issues with the tutorial, please free to contact us on support@iqrajavaid.com
We will try our best to resolve the issue and if still persists we can discuss for a refund in case its required.
Lab Price = $10
Please feel free to send us your queries at: support@iqrajavaid.com

Payment methods

Add to Cart

Buy Now

View Cart