Exam 5: Introduction to SQL

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

The following two SQL statements will produce the same results. SELECT last_name, first_name FROM customer WHERE credit_limit > 99 AND credit_limit < 10001; SELECT last_name, first_name FROM customer WHERE credit_limit BETWEEN 100 and 10000;

(True/False)
4.8/5
(30)

Requiring a CustomerID to exist in a Primary table before it can exist in a foreign table is an example of:

(Multiple Choice)
4.9/5
(35)

The SQL command ________ adds one or more new columns to a table.

(Multiple Choice)
4.9/5
(33)

________ is a set of commands used to control a database, including security.

(Multiple Choice)
4.8/5
(39)

What are some of the standard SQL functions that can be used in the SELECT clause?

(Essay)
4.9/5
(42)

How is the HAVING clause different from the WHERE clause?

(Essay)
4.7/5
(32)

The ORDER BY clause sorts the final results rows in ascending or descending order.

(True/False)
4.9/5
(37)

The following two SQL statements will produce different results. SELECT last_name, first_name FROM customer WHERE state = 'MA' OR state = 'NY' OR state = 'NJ' OR state = 'NH' OR state = 'CT'; SELECT last_name, first_name FROM customer WHERE state in ('MA','NY','NJ','NH','CT');

(True/False)
4.9/5
(33)

DCL is used to update the database with new records.

(True/False)
4.8/5
(28)

An INSERT command does not need to have the fields listed.

(True/False)
4.8/5
(28)

What result will the following SQL statement produce? SELECT Avg(Standard_Price) as average from Product_V;

(Multiple Choice)
4.7/5
(30)

In databases, null values are equivalent to zero.

(True/False)
4.9/5
(33)

Which of the following is true of the order in which SQL statements are evaluated?

(Multiple Choice)
4.9/5
(44)

The following query totals sales for each salesperson. SELECT salesperson_id, sum(sales) FROM salesperson GROUP BY salesperson_id;

(True/False)
4.9/5
(38)

What will be returned when the following SQL statement is executed? SELECT driver_no,count(*) as num_deliveries FROM deliveries GROUP BY driver_no;

(Multiple Choice)
4.9/5
(31)

To eliminate duplicate rows in a query, the ________ qualifier is used in the SQL Select command.

(Multiple Choice)
4.7/5
(37)

The ORDER BY clause is the first statement processed in an SQL command.

(True/False)
4.8/5
(37)

Which of the following is the wildcard operator in SQL statements?

(Multiple Choice)
4.9/5
(33)

The DROP command deletes rows from a table individually or in groups.

(True/False)
4.9/5
(42)

A catalog is the structure that contains object descriptions created by a user.

(True/False)
4.8/5
(32)
Showing 61 - 80 of 102
close modal

Filters

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