Exam 6: Introduction to SQL

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

The WHERE clause is always processed before the GROUP BY clause when both occur in a SELECT statement.

(True/False)
5.0/5
(31)

DCL is used to update the database with new records.

(True/False)
4.8/5
(40)

A view may not be updated directly if it contains:

(Multiple Choice)
4.9/5
(37)

The ________ is a set of commands used to maintain and query a database.

(Short Answer)
4.9/5
(36)

What result set will the following query return? Select item_no,description From item Where weight > 100 and weight < 200;

(Multiple Choice)
4.9/5
(35)

What does the following SQL statement do? Update Product_T Set Unit_Price = 775 Where Product_ID = 7

(Multiple Choice)
4.9/5
(36)

The DROP TABLE command causes tables to be ________,________,and ________ from the database.

(Short Answer)
4.9/5
(30)

The following query totals sales in state= 'MA' for each salesperson. Select salesperson_id,sum(sales) from salesperson group by salesperson_id having state = 'MA';

(True/False)
4.7/5
(29)

The ________ SQL command defines a logical table from one or more tables.

(Short Answer)
4.9/5
(36)

When creating tables,it's important to decide which columns will allow null values before the table is created.

(True/False)
4.9/5
(36)

A referential integrity constraint specifies that the existence of an attribute in one table depends upon the existence of a foreign key in the same or another table.

(True/False)
4.8/5
(40)

A(n)________ is a set of schemas put together that represent a database description.

(Short Answer)
4.9/5
(40)

Using aggregate functions will give a ________ answer.

(Short Answer)
4.9/5
(33)

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.9/5
(43)

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

(Multiple Choice)
4.9/5
(37)

To get all the customers from Hawaii sorted together,which of the following would be used?

(Multiple Choice)
4.8/5
(36)

A single value returned from an SQL query that includes an aggregate function is called a(n):

(Multiple Choice)
4.7/5
(30)

The following query totals sales for each salesperson. Select salesperson_id,sum(sales) from salesperson group by salesperson_id;

(True/False)
4.9/5
(36)

The ________ is a set of commands used to define a database.

(Short Answer)
4.8/5
(28)
Showing 101 - 119 of 119
close modal

Filters

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