1/69
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
A database language enables the user to perform complex queries designed to transform the raw data into useful information.
TRUE
SQL is considered difficult to learn; its command set has a vocabulary of more than 300 words.
FALSE
The ANSI SQL standards are also accepted by the ISO.
TRUE
The COMMIT command does not permanently save all changes. In order to do that, you must use SAVE.
FALSE
All SQL commands must be issued on a single line.
FALSE
Although SQL commands can be grouped together on a single line, complex command sequences are best shown on separate lines, with space between the SQL command and the command's components.
TRUE
An alias cannot be used when a table is required to be joined to itself in a recursive query.
FALSE
Oracle users can use the Access QBE (query by example) query generator.
FALSE
You can select partial table contents by naming the desired fields and by placing restrictions on the rows to be included in the output.
TRUE
Comparison operators cannot be used to place restrictions on character-based attributes.
FALSE
String comparisons are made from left to right.
TRUE
Date procedures are often more software-specific than other SQL procedures.
TRUE
SQL allows the use of logical restrictions on its inquiries such as OR, AND, and NOT.
TRUE
You cannot insert a row containing a null attribute value using SQL.
FALSE
ANSI-standard SQL allows the use of special operators in conjunction with the WHERE clause.
TRUE
The conditional LIKE must be used in conjunction with wildcard characters.
TRUE
Most SQL implementations yield case-insensitive searches.
FALSE
Some RDBMSs, such as Microsoft Access, automatically make the necessary conversions to eliminate case sensitivity.
TRUE
The COUNT function is designed to tally the number of non-null 'values' of an attribute, and is often used in conjunction with the DISTINCT clause.
TRUE
Numeric functions take one numeric parameter and return one value.
TRUE
The SQL data manipulation command HAVING:
restricts the selection of grouped rows based on a condition
The SQL command that allows a user to permanently save data changes is _.
COMMIT
The _ command defines a default value for a column when no value is given.
DEFAULT
The _ command restricts the selection of grouped rows based on a condition.
HAVING
A(n) _ query specifies which data should be retrieved and how it should be filtered, aggregated, and displayed.
SELECT
A(n) _ is an alternate name given to a column or table in any SQL statement.
alias
According to the rules of precedence, which of the following computations should be completed first?
Operations within parentheses
Which query is used to list a unique value for V_CODE, where the list will produce only a list of those values that are different from one another?
SELECT DISTINCT V_CODE FROM PRODUCT;
When using a(n) _ join, only rows from the tables that match on a common value are returned.
inner
A(n) _ join will select only the rows with matching values in the common attribute(s).
natural
If a designer wishes to create an inner join, but the two tables do not have a commonly named attribute, he can use a(n) _ clause.
JOIN ON
A(n) _ join returns not only the rows matching the join condition (that is, rows with matching values in the common columns) but also the rows with unmatched values.
outer
The syntax for a left outer join is _.
SELECT column-list FROM table1 LEFT [OUTER] JOIN table2 ON join-condition
A(n) _ join performs a relational product (also known as the Cartesian product) of two tables.
cross
How many rows would be returned from a cross join of tables A and B, if A contains 8 rows and B contains 18?
144
Which comparison operator indicates a value is not equal?
<>
What type of command does this SQL statement use? SELECT PCODE, PDESCRIPT, PPRICEVNAME FROM PRODUCT, VENDOR WHERE PRODUCT.VCODE=VENDOR. V_CODE
old-style' join
The special operator used to check whether an attribute value is within a range of values is _.
BETWEEN
The special operator used to check whether an attribute value matches a given string pattern is _.
LIKE
The SQL aggregate function that gives the number of rows containing non-null values for a given column is _.
COUNT
A(n) _ is a query that is embedded (or nested) inside another query.
subquery
In subquery terminology, the first query in the SQL statement is known as the _ query.
outer
The special operator used to check whether a subquery returns any rows is _.
EXISTS
Which is a feature of a correlated subquery?
The outer subquery initiates the process of execution in a subquery
The _ function returns the current system date in MS Access.
DATE()
When using the Oracle TODATE function, the code represents a three-letter month name.
MON
_ is a string function that returns the number of characters in a string value.
LENGTH
The Oracle _ function compares an attribute or expression with a series of values and returns an associated value or a default value if no match is found.
DECODE
In Oracle, the _ function converts a date to a character string.
TO_CHAR()
_ is a relational set operator.
EXCEPT
The basic SQL vocabulary has fewer than _words.
100
The _ specification is used to avoid having duplicated values in a column.
UNIQUE
In the SQL environment, the word _ covers both questions and actions.
query
A(n) _ character is a symbol that can be used as a general substitute for other characters or commands.
wildcard
The _ condition is generally composed of an equality comparison between the foreign key and the primary key of related tables.
join
A(n) _ order sequence is a multilevel ordered sequence that can be created easily by listing several attributes, separated by commas, after the ORDER BY clause.
cascading
An alias is especially useful when a table must be joined to itself in a(n) _ query.
recursive
The _ command, coupled with appropriate search conditions, is an incredibly powerful tool that enables a user to transform data into information.
SELECT
A specialty field in mathematics, known as _ algebra, is dedicated to the use of logical operators.
Boolean
In SQL, all _ expressions evaluate to true or false.
conditional
Rows can be grouped into smaller collections quickly and easily using the _ clause within the SELECT statement.
GROUP BY
The _ clause of the GROUP BY statement operates very much like the WHERE clause in the SELECT statement.
HAVING
A(n) _, also known as a nested query or an inner query, is a query that is embedded (or nested) inside another query.
subquery
DATE() and SYSDATE are special functions that return today's date in MS Access and _, respectively.
Oracle
_ functions allow you to take a value of a given data type and convert it to the equivalent value in another data type.
Conversion
_' means that the names of the relation attributes must be the same and their data types must be alike.
Union-compatible
The _ statement in SQL combines rows from two queries and returns only the rows that appear in the first set but not in the second.
EXCEPT
The _ operator could be used in place of INTERSECT if the DBMS does not support it.
IN
The _ operator could be used in place of EXCEPT (MINUS) if the DBMS does not support it.
NOT IN
The syntax of the EXCEPT statement in Oracle is _.
query EXCEPT query