Exam 4: Single Table Queries

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Which clause is used to restrict the groups that will be included in a query result?

(Multiple Choice)
4.8/5
(37)

Which of the following operators can be used for a column computation?

(Multiple Choice)
4.8/5
(36)

Which operator uses one or more wildcard characters to test for a pattern match?

(Multiple Choice)
4.8/5
(38)

Which function determines the number of rows in a table?

(Multiple Choice)
4.9/5
(28)

In MySQL, you can use an asterisk (*) to represent any column when using the _____.

(Multiple Choice)
4.8/5
(36)

Mallory would like to display the rows from a MySQL table that have "Red," "Pink," or "White" in the COLOR column. A concise way of writing her query would be to use a(n) _____.

(Multiple Choice)
5.0/5
(31)

When a subquery is used in a SQL statement _____.

(Multiple Choice)
4.9/5
(32)

All SELECT statements require a WHERE clause.

(True/False)
5.0/5
(37)

What does the following SQL query do? SELECT INVOICE_NUM FROM INVOICE_LINE WHERE PROD_CODE IN (SELECT PROD_CODE FROM PRODUCTS WHERE (PROD_TYPE = 'Cupcake'));

(Multiple Choice)
5.0/5
(40)

It is possible to place one query inside another.

(True/False)
4.9/5
(34)

When you need to sort data on two columns, the less important column is called the _____.

(Multiple Choice)
5.0/5
(38)

What SQL command do you use to query a database?

(Multiple Choice)
4.8/5
(38)

Which operator finds rows that do not contain a null value in the specified column?

(Multiple Choice)
4.7/5
(38)

The GROUP BY clause sorts the data in a particular order.

(True/False)
4.8/5
(31)

Imagine that you are working with a MySQL table called ADDRESS_BOOK with the following columns: FIRST_NAME, LAST_NAME, STREET_ADDRESS, CITY, STATE, ZIP_CODE, and BIRTHDAY. Write queries to (1) list all rows missing the ZIP code value and (2) list all rows that include a birthday value.

(Essay)
4.9/5
(32)
Showing 21 - 35 of 35
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)