Which of the following do you need to consider when you make a table in SQL?
A. Data types
B. Primary keys
C. Default values
D. All of the above
Select an option to see the answer and solution.
SQL query and modification commands make up a(n) ________ .
Select an option to see the answer and solution.
When three or more AND and OR conditions are combined, it is easier to use the SQL keyword(s):
A. LIKE only.
B. IN only.
C. NOT IN only.
D. Both IN and NOT IN.
E. None of the above
Select an option to see the answer and solution.
The Microsoft Access wildcards are ____ and ____ .
A. asterisk (*); percent sign (%)
B. percent sign (%); underscore (_)
C. underscore(_); question mark (?)
D. question mark (?); asterisk (*)
Select an option to see the answer and solution.
Find the SQL statement below that is equal to the following: SELECT NAME FROM CUSTOMER WHERE STATE = 'VA';
A. SELECT NAME IN CUSTOMER WHERE STATE IN ('VA');
B. SELECT NAME IN CUSTOMER WHERE STATE = 'VA';
C. SELECT NAME IN CUSTOMER WHERE STATE = 'V';
D. SELECT NAME FROM CUSTOMER WHERE STATE IN ('VA');
Select an option to see the answer and solution.
Which one of the following sorts rows in SQL?
A. SORT BY
B. ALIGN BY
C. ORDER BY
D. GROUP BY
Select an option to see the answer and solution.
To sort the results of a query use:
A. SORT BY.
B. GROUP BY.
C. ORDER BY.
D. None of the above is correct.
Select an option to see the answer and solution.
To define what columns should be displayed in an SQL SELECT statement:
A. use FROM to name the source table(s) and list the columns to be shown after SELECT.
B. use USING to name the source table(s) and list the columns to be shown after SELECT.
C. use SELECT to name the source table(s) and list the columns to be shown after USING.
D. use USING to name the source table(s) and list the columns to be shown after WHERE.
Select an option to see the answer and solution.
SQL can be used to:
A. create database structures only.
B. query database data only.
C. modify database data only.
D. All of the above can be done by SQL.
Select an option to see the answer and solution.
The SQL statement that queries or reads data from a table is ________ .
A. SELECT
B. READ
C. QUERY
D. None of the above is correct
Select an option to see the answer and solution.
The SQL keyword BETWEEN is used:
A. for ranges.
B. to limit the columns displayed.
C. as a wildcard.
D. None of the above is correct.
Select an option to see the answer and solution.
A subquery in an SQL SELECT statement:
A. can only be used with two tables.
B. can always be duplicated by a join.
C. has a distinct form that cannot be duplicated by a join.
D. cannot have its results sorted using ORDER BY.
Select an option to see the answer and solution.
________ was adopted as a national standard by ANSI in 1992.
A. Oracle
B. SQL
C. Microsoft Access
D. DBase
Select an option to see the answer and solution.
SQL is:
A. a programming language.
B. an operating system.
C. a data sublanguage.
D. a DBMS.
Select an option to see the answer and solution.
The condition in a WHERE clause can refer to only one value.
Select an option to see the answer and solution.
The ADD command is used to enter one row of data or to add multiple rows as a result of a query.
Select an option to see the answer and solution.
SQL provides the AS keyword, which can be used to assign meaningful column names to the results of queries using the SQL built-in functions.
Select an option to see the answer and solution.
The SELECT command, with its various clauses, allows users to query the data contained in the tables and ask many different questions or ad hoc queries.
Select an option to see the answer and solution.
A SELECT statement within another SELECT statement and enclosed in square brackets ([...]) is called a subquery.
Select an option to see the answer and solution.
The rows of the result relation produced by a SELECT statement can be sorted, but only by one column.
Select an option to see the answer and solution.