CIS336 Week 4 Quiz New (2019) – 100% Score – Study Guide – Perfect Solution

Lab Price = $5
Please feel free to send us your queries at: [email protected]
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

Question 1

(TCO 6) The four main clauses of the SELECT statement must be coded in the following order.

Question 2

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

Question 3

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

1. DATE_FORMAT(HIREDATE, ‘%W, %m %d, %Y’)
4. DATE_FORMAT(HIREDATE, ‘%a, %m %d, %y’)

Question 4

(TCO 6) Given a customer table with fields for firstname and lastname, which of the following will display the customer name as a single field in the format “Jones, Tom” with a heading?
1. SELECT CONCAT(lastname, firstname) as “Name” FROM customer;
2. SELECT CONCAT(firstname, lastname) as “Name” FROM customer;
3. SELECT CONCAT(lastname, ‘, ‘, firstname) as “Name” FROM customer;
4. SELECT CONCAT lastname ‘, ‘ firstname as “Name” FROM customer;

Question 5

(TCO 8) Given a table customer with fields firstname, lastname (both varchar) and custid (integer), which is a proper update command?

1. UPDATE customer SET firstname = ‘Joe’ WHERE custid = 22;
2. UPDATE customer REPLACE firstname = ‘Joe’ WHERE custid = 22;
3. UPDATE customer WHERE custid = 22 SET firstname = ‘Joe’;
4. UPDATE customer WHERE custid = 22 ALTER firstname = ‘Joe’;

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 shipped?

1. SELECT ordered FROM orders WHERE shipdate <> orderdate;
2. SELECT orderid FROM orders WHERE shipdate IS NOT NULL;
3. SELECT orderid FROM orders WHERE shipdate IS NULL;
4. SELECT orderid FROM orders;

Question 7

(TCO 6) Which WHERE clause will return data on all books with ‘JAVA’ anywhere in the title?
1. WHERE title LIKE ‘JAVA’
2. WHERE title LIKE ‘JAVA%’
3. WHERE title LIKE ‘%JAVA%’
4. WHERE title LIKE ‘%JAVA’

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;
1. You must sort and filter on the same field.
2. You cannot use ORDER BY and WHERE in the same query.
3. The ORDER BY clause must always be last.
4. Nothing is wrong.

Question 9

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

Question 10

(TCO 6) Given a books table with fields: title, category (such as ‘SPORTS’), cost, retail; what condition will return books with a retail price under 30 in the ‘MYSTERY’ or ‘BIOGRAPHY’ categories?
1. WHERE retail < 30 AND category = ‘MYSTERY’ OR ‘BIOGRAPHY’ 2. WHERE retail < 30 AND category = ‘MYSTERY’ OR category = ‘BIOGRAPHY’ 3. WHERE retail < 30 AND (category = ‘MYSTERY’ OR category = ‘BIOGRAPHY’) 4. WHERE retail < 30 AND category IN ‘MYSTERY’ OR ‘BIOGRAPHY’

Relevant Material
* 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 [email protected].
* 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 [email protected] 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 [email protected].
* 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 [email protected]
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 = $5
Please feel free to send us your queries at: [email protected]

Payment methods

Add to Cart

Buy Now

View Cart

Leave a Reply