CIS336 Week 4 Quiz – Study Guide – Perfect Solution

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

Grade Details – All Questions
Question 1. (TCO 6) The four main clauses of the SELECT statement must be coded in the following order.

SELECT, FROM, ORDER BY, WHERE

SELECT, WHERE, ORDER BY, FROM

SELECT, FROM, WHERE, ORDER BY

SELECT, ORDER BY, FROM, WHERE

Question 2. (TCO 6) Which operator would be most appropriate to determine books with a retail price in the range of $50 to $100?

LIKE

IN

BETWEEN

>

Question 3. (TCO 6) Which code returns the date field HIREDATE in the format: Friday, April 5th, 2015?

DATE_FORMAT(HIREDATE, ‘%W, %m %d, %Y’)

DATE_FORMAT(HIREDATE, ‘%a, %M %D, %Y’)

DATE_FORMAT(HIREDATE, ‘%W, %M %D, %Y’)

DATE_FORMAT(HIREDATE, ‘%a, %m %d, %y’)

Question 4. (TCO 6) Given a books table with fields for title, retail and cost, which of the following will display the new retail price of each book as 20% more than its current retail price along with a heading?

SELECT title, retail * 1.2 AS “New Price” FROM books;

SELECT title, retail + 1.2 AS “New Price” FROM books;

SELECT title, retail * 0.2 AS “New Price” FROM books;

SELECT title, retail * 1.02 AS “New Price” FROM books;

Question 5. (TCO 8) The column to be updated by the UPDATE command is specified in the _____ clause.

WHERE

MODIFY

ALTER

SET

Question 6. (TCO 6) Given a table orders with fields for orderid, orderdate, and shipdate, which query will display the ordered for only those orders that have not shipped?

SELECT orderid FROM orders WHERE shipdate = orderdate;

SELECT orderid FROM orders WHERE shipdate IS NOT NULL;

SELECT orderid FROM orders WHERE shipdate IS NULL;

SELECT orderid FROM orders;

Question 7. (TCO 6) Which WHERE clause will return data on all employees whose last name starts with ‘Smith’?

WHERE lastname LIKE ‘Smith

WHERE lastname LIKE ‘Smith%’

WHERE lastname LIKE ‘%Smith%’

WHERE lastname LIKE ‘%Smith

Question 8. (TCO 6) Given a books table with fields of title, cost, and retail, what if anything is wrong with the following query (assuming all fields exist)?
SELECT * FROM books ORDER BY retail WHERE cost > 20;

You must sort and filter on the same field.

You cannot use ORDER BY and WHERE in the same query.

The ORDER BY clause must always be last.

Nothing is wrong.

Question 9. (TCO 8) You can delete one or more rows in a table by using the _____ command.

UPDATE

DROP

DELETE

ALTER

Question 10. (TCO 6) Given a books table with fields: title, category (such as ‘SPORTS’), cost, retail; what condition will return ‘COMPUTER’ books with a retail price between $50 and $100 ?

WHERE retail > 50 AND < 100 AND category = ‘COMPUTER’

WHERE category = ‘COMPUTER’ AND (retail BETWEEN 100 and 50)
WHERE category = ‘COMPUTER’ AND retail < 50 AND retail > 100
WHERE category = ‘COMPUTER’ AND ( retail BETWEEN 50 AND 100)

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