Database Chapter 5

¡Supera tus tareas y exámenes ahora con Quizwiz!

INSERT INTO is an example of ________ code. A. TIO B. DCL C. DDL D. DML

D. DML

The views are created by executing a CREATE VIEW SQL command. A. True B. False

A. True

What does the following SQL statement do? ALTER TABLE Customer_T ADD (Type Varchar (2)); A. Alters the Customer_T table by adding a field called "Type" B. Alters the Customer_T table to be a Type 2 Varchar C. Alters the Customer_T table to accept Type 2 Varchars D. Alters the Customer_T table by adding a 2-byte field called "Varchar"

A. Alters the Customer_T table by adding a field called "Type"

A database table is defined using the data definition language (DDL). A. True B. False

A. True

A view may not be updated directly if it contains: A. the WHERE clause B. the HAVING clause C. the FROM clause D. the SELECT clause

B. the HAVING clause

Multiple values returned from an SQL query that includes an aggregate function are called: A. agates. B. vector aggregates. C. summations. D. scalar aggregates.

B. vector aggregates.

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 Standard_Price of any wood product in the table B. The total price of all products that are of type wood C. The Standard_Price of the first wood product in the table D. The total price of all products

The total price of all products that are of type wood

The last part of an SQL query to be read is the ________ statement. A. WHERE B. ORDER BY C. FROM D. SELECT

B. ORDER BY

A major benefit of SQL is a standard is reduced training costs. A. True B. False

A. True

An INSERT command does not need to have the fields listed. A. True B. False

A. True

Expressions are mathematical manipulations of data in a table that may be included as part of the SELECT statement. A. True B. False

A. True

One of the originals purpose of the SQL standard was to provide a vehicle for portability of database definition and application modules between conforming DBMSs. A. True B. False

A. True

The ALTER TABLE command is used to change a table definition. A. True B. False

A. True

The SQL command used to populate tables is the INSERT command. A. True B. False

A. True

The asterisk (*) wildcard designator can be used to select all fields from a table as well as in WHERE clauses when an exact match is not possible. A. True B. False

A. True

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

A. True

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

A. True

The first in a series of steps to follow when creating a table is to: A. identify each attribute and its characteristics. B. identify columns that must be unique. C. create an index. D. identify columns that must be null

A. identify each attribute and its characteristics.

Which of the following is true of the order in which SQL statements are evaluated? A. the SELECT clause is processed before the ORDER BY clause. B. The GROUP BY clause is processed before the WHERE clause. C. the SELECT clause is always processed first. D. the SELECT clause is always processed last.

A. the SELECT clause is processed before the ORDER BY clause

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

B. False

A database is maintained and queried using the data mapping language (DML). A. True B. False

B. False

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. A. True B. False

B. False

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

B. False

DCL is used to update the database with new records. A. True B. False

B. False

Implementation of a standard can never stifle creativity and innovation. A. True B. False

B. False

Indexes generally slow down access speed in most RDMS. A. True B. False

B. False

The DELETE TABLE DDL command is used to remove a table from the database. A. True B. False

B. False

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

B. False

What will be returned when the following SQL statement is executed? SELECT driver_no,count(*) as num_deliveries FROM deliveries GROUP BY driver_no; A. A count of all of the deliveries made by all drivers B. An error message C. A listing of each driver as well as the number of deliveries that he or she has made D. A listing of all drivers, sorted by driver number

C. A listing of each driver as well as the number of deliveries that he or she has made

________ is a set of commands used to control a database, including security. A. DDL B. DPL C. DCL D. DML

C. DCL

DDL is typically used during which phase of the development process? A. Analysis B. Implementation C. Physical design D. Evaluation

C. Physical design

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 of all customers living in Boston, New York or Denver B. The Customer_Name and telephone of all customers living in Boston and New York and Denver C. The Customer_Name and telephone of all customers D. The Customer_Name and telephone of all customers living in either Boston, New York or Denver

D. The Customer_Name and telephone of all customers living in either Boston, New York or Denver

Any create command may be reversed by using a(n) ________ command. Question 5 options: A. delete B. undo C. unpack D. drop

D. drop

The ________ is the structure that contains descriptions of objects such as tables and views created by users. A. catalog B. master view C. SQL D. schema

D. schema


Conjuntos de estudio relacionados

Orientation: canvas student orientation quiz

View Set

Networking + 6 edition Chapter 4

View Set

AICPA Code of Professional Conduct: Conceptual Framework Part 1: Members in Public Practice (1B1 Video 2)

View Set