Accounting
Anthropology
Archaeology
Art History
Banking
Biology & Life Science
Business
Business Communication
Business Development
Business Ethics
Business Law
Chemistry
Communication
Computer Science
Counseling
Criminal Law
Curriculum & Instruction
Design
Earth Science
Economic
Education
Engineering
Finance
History & Theory
Humanities
Human Resource
International Business
Investments & Securities
Journalism
Law
Management
Marketing
Medicine
Medicine & Health Science
Nursing
Philosophy
Physic
Psychology
Real Estate
Science
Social Science
Sociology
Special Education
Speech
Visual Arts
Humanities
Q:
In an SQL query, the built-in functions SUM and AVG work with columns containing data of which of the following data types?
A) Integer
B) Numeric
C) Char
D) Both A and B are correct
Q:
In an SQL query, which built-in function is used to obtain the smallest value of numeric columns?
A) AVG
B) COUNT
C) MAX
D) MIN
Q:
In an SQL query, which built-in function is used to obtain the largest value of numeric columns?
A) AVG
B) COUNT
C) MAX
D) MIN
Q:
In an SQL query, which built-in function is used to compute the average value of numeric columns?
A) AVG
B) MEAN
C) MAX
D) SUM
Q:
In an SQL query, which built-in function is used to total numeric columns?
A) AVG
B) COUNT
C) MAX
D) SUM
Q:
Given a table with the structure: EMPLOYEE (EmpNo, Name, Salary, HireDate), which of the following would find all employees whose name begins with the letter "S" using Microsoft Access?
A) SELECT *
FROM EMPLOYEE
WHERE Name IN ['S'];
B) SELECT EmpNo
FROM EMPLOYEE
WHERE Name LIKE 'S';
C) SELECT *
FROM EMPLOYEE
WHERE Name LIKE 'S*';
D) SELECT *
FROM EMPLOYEE
WHERE Name LIKE 'S%';
Q:
Given a table with the structure: EMPLOYEE (EmpNo, Name, Salary, HireDate), which of the following would find all employees whose name begins with the letter "S" using standard SQL?
A) SELECT *
FROM EMPLOYEE
WHERE Name IN ['S'];
B) SELECT EmpNo
FROM EMPLOYEE
WHERE Name LIKE 'S';
C) SELECT *
FROM Name
WHERE EMPLOYEE LIKE 'S*';
D) SELECT *
FROM EMPLOYEE
WHERE Name LIKE 'S%';
Q:
In an SQL query, which SQL keyword is used to sort the result table by the values in one or more columns?
A) GROUP BY
B) ORDER BY
C) SELECT
D) SORT BY
Q:
In an SQL query, which of the following symbols is used by Microsoft Access to represent a single unspecified character?
A) _ (underscore)
B) ? (question mark)
C) * (asterisk)
D) % (percent)
Q:
In an SQL query, which of the following symbols is used by ANSI SQL to represent a single unspecified character?
A) _ (underscore)
B) ? (question mark)
C) * (asterisk)
D) % (percent)
Q:
In an SQL query, which SQL keyword is used to determine if a column value is equal to any one of a set of values?
A) AND
B) EXISTS
C) OR
D) IN
Q:
In an SQL query, which SQL keyword is used to link two conditions that both must be true for the rows to be selected?
A) AND
B) EXISTS
C) OR
D) IN
Q:
In an SQL query, which SQL keyword is used to state the condition that specifies which rows are to be selected?
A) SET
B) FROM
C) SELECT
D) WHERE
Q:
In an SQL query, which of the following symbols is used by ANSI SQL to represent all the columns in a single table?
A) _ (underscore)
B) ? (question mark)
C) * (asterisk)
D) % (percent)
Q:
In an SQL query, which SQL keyword must be used to remove duplicate rows from the result table?
A) DELETE
B) DISTINCT
C) UNIQUE
D) KEY
Q:
In an SQL query, which SQL keyword is used to specify the table(s) to be used?
A) EXISTS
B) FROM
C) SELECT
D) WHERE
Q:
In an SQL query, which SQL keyword actually begins the query?
A) EXISTS
B) FROM
C) SELECT
D) WHERE
Q:
When making an SQL query, we are using SQL as a(n) ________.
A) DDL
B) DML
C) embedded language
D) SET
Q:
SQL is a ________.
A) data sublanguage
B) data manipulation language
C) data definition language
D) programming language
Q:
An ad-hoc query is ________.
A) a question about the data that requires a program to be written
B) a question that can be answered from the database using SQL
C) a question that can be answered only by combining several SQL queries
D) never useful in Business Intelligence scenarios
Q:
A database extracted from the operational database for BI purposes typically ________.
A) is an exact copy of the operational database
B) contains only the metadata from the operational database
C) combines all the data from the operational database into one large table
D) contains just part of the operational database
Q:
The INTERSECT of two relations A and B consists of all rows that are in relation B but are not in relation A.
Q:
The UNION of two relations A and B consists of all rows that are either in relation A or in relation B or both.
Q:
Outer joins can be either up joins or down joins.
Q:
Joins that show the matching rows from the joined tables plus unmatched rows from one other table in their results are called outer joins.
Q:
Joins that show only matching rows from the joined tables in their results are called inner joins.
Q:
The SQL syntax JOIN . . . ON can be used as an alternate way of writing an SQL join statement.
Q:
While many subqueries can be alternatively written as joins, correlated subqueries do work that cannot be duplicated as a join.
Q:
Every subquery can be alternatively expressed by a join.
Q:
In an SQL query, a join operation is achieved by specifying the equality of the respective column names as a condition in the WHERE clause.
Q:
The names of tables to be joined in an SQL query are listed in the FROM clause.
Q:
Two or more tables are joined by giving the table names in the WHERE clause and specifying the equality of the respective column names as a condition in the GROUP BY clause.
Q:
When people use the term join they normally mean an equijoin.
Q:
An alternative to combining tables by a subquery is to use a join.
Q:
Only two tables can be queried by using a subquery.
Q:
A nested SELECT statement (one that appears within the WHERE clause of another SQL statement) is called a subquery and must be enclosed in parentheses.
Q:
A SELECT statement used in a WHERE clause is called a subquery.
Q:
A WHERE clause can contain another SELECT statement enclosed in parentheses.
Q:
The SQL keyword GROUP BY instructs the DBMS to group together those rows that have the same value in a column.
Q:
Arithmetic in SQL statements is limited to the operations provided by the built-in functions.
Q:
The clause SELECT COUNT (*) results in a table with a single row and a single column.
Q:
The built-in function SUM can be used with any column.
Q:
The SQL built-in function COUNT computes the number of rows in a query.
Q:
The SQL built-in function MIN obtains the smallest value in a numeric column.
Q:
The SQL built-in function MOST obtains the largest value in a numeric column.
Q:
The SQL built-in function AVG computes the average of values in numeric columns.
Q:
The SQL built-in function ADDUP totals values in numeric columns.
Q:
The Microsoft Access wildcard character "_" (underscore) indicates a single, unspecified character in a specific location in a Microsoft Access SQL query.
Q:
The Microsoft Access wildcard character "*" (asterisk) indicates a sequence of one or more unspecified characters in a Microsoft Access SQL query.
Q:
The SQL wildcard character "#" indicates a single, unspecified character in a specific location in an SQL query.
Q:
The SQL wildcard character "%" represents a series of one or more unspecified characters.
Q:
The SQL keyword LIKE is used in SQL expressions to select partial string values.
Q:
The condition in WHERE clauses can refer to a set of values by using the IN operator.
Q:
To refer to a set of values in a condition, the values are placed inside parentheses ( ) and separated by commas.
Q:
To exclude one or more values using a condition, the SQL OUT keyword must be used.
Q:
To refer to a set of values needed for a condition, use the SQL IN operator.
Q:
When two conditions must both be true for the rows to be selected, the conditions are separated by the SQL AND keyword.
Q:
A WHERE clause can contain only one condition.
Q:
Columns can be sorted in descending sequence by using the SQL DESC keyword.
Q:
To sort the rows of the result table, the ORDER BY clause is specified.
Q:
Sorting is specified by the use of the SORT BY phrase.
Q:
The rows of the result table can be sorted by the values in one or more columns.
Q:
The WHERE clause contains the condition that specifies which columns are to be selected.
Q:
An asterisk (*) following the SELECT verb means that all columns are to be displayed.
Q:
To have SQL automatically eliminate duplicate rows from a result, use the keyword DISTINCT with the FROM keyword.
Q:
The result of an SQL SELECT operation can contain duplicate rows.
Q:
The SQL WHERE clause contains the condition that specifies which rows are to be selected.
Q:
To obtain all columns, use an asterisk (*) wildcard character instead of listing all the column names.
Q:
To remove duplicate rows from the result of a query, specify the SQL DISTINCT keyword.
Q:
The columns to be obtained by an SQL command are listed after the FROM keyword.
Q:
SQL statements end with a colon.
Q:
SQL can only query a single table.
Q:
The SQL keyword FROM is used to specify the table to be used.
Q:
The SQL keyword WHERE is used to specify the table(s) that contain(s) the data to be retrieved.
Q:
The SQL keyword SELECT is used to specify the columns to be listed in the query results.
Q:
SQL, although very popular, has never become a national standard.
Q:
SQL commands can be embedded in application programs.
Q:
In addition to being a data sublanguage, SQL is also a programming language, like Java or C#.
Q:
SQL is not a complete programming language. Rather it is a data sublanguage.
Q:
SQL was developed by IBM in the late 1970s.