Exam 5: Introduction to SQL

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

Any create command may be reversed by using a(n) ________ command.

Free
(Multiple Choice)
4.7/5
(38)
Correct Answer:
Verified

B

What result set will the following query return? SELECT Item_No, description FROM item WHERE weight > 100 and weight < 200;

Free
(Multiple Choice)
4.9/5
(28)
Correct Answer:
Verified

C

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';

Free
(True/False)
4.9/5
(30)
Correct Answer:
Verified

False

In order to update data in SQL, one must inform the DBMS which relation, columns, and rows are involved.

(True/False)
4.9/5
(30)

The CREATE SCHEMA DDL command is used to create a table.

(True/False)
4.9/5
(31)

The benefits of a standardized relational language include:

(Multiple Choice)
4.9/5
(29)

Which of the following questions is answered by the SQL statement? SELECT COUNT (Product_Description) FROM Product_T;

(Multiple Choice)
4.7/5
(40)

COUNT(*) tallies only those rows that contain a value, while COUNT counts all rows.

(True/False)
4.8/5
(34)

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

(True/False)
4.9/5
(33)

SQL originated from a project called System-S.

(True/False)
4.8/5
(35)

The ALTER TABLE command is used to change a table definition.

(True/False)
4.8/5
(37)

The comparison operators = and != are used to establish a range of values.

(True/False)
4.8/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
(37)

Indexes generally slow down access speed in most RDMS.

(True/False)
4.9/5
(31)

Explain the three classes of SQL commands and when they would be used.

(Essay)
4.8/5
(30)

The content of dynamic views is generated when they are referenced.

(True/False)
4.8/5
(36)

In an SQL statement, which of the following parts states the conditions for row selection?

(Multiple Choice)
4.8/5
(31)

What does the following SQL command do? INSERT INTO Customer_T values (001,'John Smith','231 West St','Boston','MA','02115');

(Multiple Choice)
4.8/5
(28)

SQL has been implemented only in the mainframe and midrange environments.

(True/False)
4.7/5
(34)

What three clauses are contained in most SQL retrieval statements?

(Essay)
5.0/5
(39)
Showing 1 - 20 of 102
close modal

Filters

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