Filters
Question type

Study Flashcards

What results will be produced by the following SQL query? Select sum(standard_price) as Total_Price From Product_V Where Product_Type = 'WOOD';


A) The total price of all products that are of type wood
B) The total price of all products
C) The Standard_Price of the first wood product in the table
D) The Standard_Price of any wood product in the table

E) None of the above
F) B) and C)

Correct Answer

verifed

verified

The last part of an SQL query to be read is the ________ statement.


A) SELECT
B) FROM
C) WHERE
D) ORDER BY

E) C) and D)
F) A) and D)

Correct Answer

verifed

verified

The command for creating a database is:


A) create table.
B) create view.
C) create schema.
D) create authorization.

E) B) and C)
F) All of the above

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

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


A) DML
B) DDL
C) DCL
D) DPL

E) A) and B)
F) B) and D)

Correct Answer

verifed

verified

INSERT INTO is an example of ________ code.


A) DDL
B) DML
C) DCL
D) TIO

E) None of the above
F) B) and C)

Correct Answer

verifed

verified

What does the following SQL statement do? Select * From Customer Where Cust_Type = "Best"


A) Selects all the fields from the Customer table for each row with a customer labeled "Best"
B) Selects the "*" field from the Customer table for each row with a customer labeled "Best"
C) Selects fields with a "*" in them from the Customer table
D) Selects all the fields from the Customer table for each row with a customer labeled "*"

E) A) and C)
F) A) and B)

Correct Answer

verifed

verified

What result set is returned from the following query? Select Customer_Name, telephone From customers Where city in ('Boston','New York','Denver') ;


A) The Customer_Name and telephone of all customers
B) The Customer_Name and telephone of all customers living in either Boston, New York or Denver
C) The Customer_Name and telephone of all customers living in Boston and New York and Denver
D) The Customer_Name of all customers living in Boston, New York or Denver

E) A) and C)
F) All of the above

Correct Answer

verifed

verified

What were the original purposes of SQL, and does SQL as we know it today live up to those standards?

Correct Answer

verifed

verified

The following were the original purposes...

View Answer

Which of the following is a purpose of the SQL standard?


A) To specify syntax and semantics of SQL data definition and manipulation
B) To specify maximum and incomplete standards
C) To define every operation for every SQL database
D) To permit no degrees of freedom for SQL DBMS

E) A) and C)
F) B) and C)

Correct Answer

verifed

verified

Relational databases are heavily based on the mathematical concept of:


A) Set Theory.
B) Bet Theory.
C) Get Theory.
D) Met Theory.

E) B) and D)
F) A) and D)

Correct Answer

verifed

verified

What does the following SQL statement do? Delete from Customer_T Where state = 'HI';


A) Deletes all records from customer_t where the state is equal to HI
B) Removes the Customer_T table from the database
C) Deletes all records from the Customer_T table
D) Doesn't delete anything because of a syntax error

E) A) and C)
F) C) and D)

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

There are three classes or types of SQL ...

View Answer

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

A) True
B) False

Correct Answer

verifed

verified

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


A) create table
B) alter table
C) create view
D) create relationship

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

Which of the following questions is answered by the SQL statement? Select Count (Product_Description) from Product_T;


A) How many products are in the table Product_T?
B) How many products have product descriptions in the Product Table?
C) How many characters are in the field name "Product_Description"?
D) How many different columns named "Product_Description" are there in table Product_T?

E) All of the above
F) B) and C)

Correct Answer

verifed

verified

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


A) alter
B) distinct
C) check
D) specific

E) A) and D)
F) None of the above

Correct Answer

verifed

verified

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


A) DML
B) DDL
C) DCL
D) DPL

E) All of the above
F) None of the above

Correct Answer

verifed

verified

SQL is both an American and international standard for database access.

A) True
B) False

Correct Answer

verifed

verified

The DELETE TABLE DDL command is used to remove a table from the database.

A) True
B) False

Correct Answer

verifed

verified

Showing 81 - 100 of 105

Related Exams

Show Answer