0% found this document useful (0 votes)
2K views1 page

Module 4 Quiz - Coursera

Uploaded by

mikoparsahan25
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2K views1 page

Module 4 Quiz - Coursera

Uploaded by

mikoparsahan25
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Module 4 Quiz

Graded Assignment • 30 min


Back

English Due Oct 17, 12:59 PM +06

Menu

1. Which of the following are supported in SQL when dealing with strings? (Select all that apply.) 1 point
Graded Assignment

Module 4 Quiz
Concatenate

Substring Review Learning Objectives

Trim

Upper

Lower Ready to review what you’ve learned before starting the assignment? I’m here to help.

Help me practice Let's chat

2. What will the result of the following statement be? 1 point

1 SELECT SUBSTR('You are beautiful.', 3) Assignment details

Due Attempts
Oct 17, 12:59 PM +06 3 left (3 attempts every 8 hours) Try again

Submitted
Oct 3, 11:47 PM +06

You are beautiful.


Your grade
This will return an error To pass you need at least 70 %. We keep your highest score.
View submission See feedback
u are beautiful.
100%
beautiful.

3. What are the results of the following query? Like Dislike Report an issue 1 point

1 select * orders
2 where order_date = ‘2017-07-15’
3

Additional information:

Orders = integer
Order_date = datetime

You will get all the orders with an order date of 2017-07-15.

You won't get any results.

You will get all of the orders.

4. Case statements can only be used for which of the following statements? (Select all that apply.) 1 point

Update

Delete

Insert

Select

5. Which of the following is FALSE regarding views? 1 point

Views will remain after the database connection has ended

Views can be used to encapsulate queries

Views are stored in a query

6. You are only allowed to have one condition in a case statement. True or false? 1 point

True

False

7. Select the correct SQL syntax for creating a view. 1 point

1 INSERT VIEW customers AS


2 Select *
3 FROM customers
4 WHERE Name LIKE '%I'
5

1 CREATE VIEW
2 customers AS
3 SELECT *
4 FROM customers
5 WHERE Name LIKE '%I'
6

1 CREATE VIEW AS
2 SELECT *
3 FROM customers
4 WHERE Name LIKE '%I'
5

8. Profiling data is helpful for which of the following? (Select all that apply.) 1 point

Joining tables together

Understanding your data

Filter out unwanted data elements

9. What is the most important step before beginning to write queries? 1 point

Deciding what tables you want to join

Deciding what should be done on the client application vs the RDMS

Understanding your data

10. When debugging a query, what should you always remember to do first? 1 point

Start by examining the joins

Start with the inner most query

Start simple and break it down first

Make sure you didn’t miss any commas.

You might also like