• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/41

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

41 Cards in this Set

  • Front
  • Back
Only two tables can be queried by using a subquery.
False
To determine the number and type of columns in a table, use the SQL construct COUNT(*).
False
When examining data values as a part of assessing table structure, there is no need to try to determine candidate keys other than the table"s primary key.
False
Multivalued dependencies create anomalies so serious that multivalued dependencies must always be eliminated.
True
Read-only database are often updated
False
SQL provides the operator BOUNDED BY that can simplify a specific range to test in a query.
False
The LIKE and NOT LIKE operators can be used to search for data rows containing incomplete or partial character strings withing a data column
True
The SUM function can compute the total of a specified table row.
False
If your SELECT clause includes both column names and aggregate functions, then you must also have a GROUP BY clause in your query.
True
The HAVING clause can include columns or expressions that are not listed in the SELECT clause or in a GROUP BY clause.
True
The alias must follow a column name.
False
Whenever you join two or more tables and access data from one table, you should always use a JOIN clause in your select statement.
False
A correlated subquery is one where the outer query depends on values provided by the inner query.
True
Within the Database Query Engine, the Parse command will ensure the SQL statement will execute properly against the target table(s).
True
In a SQL query, which SQL keyword actually creates the query?
a.) EXISTS
b.) FROM
c.) SELECT
d.) SET
e.) WHERE
c.) SELECT
In a SQL query, which SQL keyword is used to specify the names of tables to be joined?
a.) FROM
b.) HAVING
c.) JOIN
d.) SELECT
e.) WHERE
a.) FROM
Which of the following descriptions is true about JOIN operation?
a.) When two tables are joined, SQL creates an inner product of the tables
b.) An ambiguous column name is qualified by using the colon (:) connector to connect the table name and the column name.
c.) Joins can be specified in either the FROM or WHERE clauses.
d.) We can assign an alias precede a table name.
e.) None of the above.
c.) Joins can be specified in either FROM or WHERE clauses.
During the second step of the assessing table structure, you are trying to determine__________.
a.) multivalued dependencies
b.) functional dependencies
c.) foreign keys
d.) a and b
e.) a, b and c
e.) a, b and c
For a number of reasons, ________ is not often an advantage for a read-only database.
a.) updating
b.) normalization
c.) denormalization
d.) a and b
e.) b and c
b.) normalization
A table designed to store PhoneNumber01, PhoneNumber02 and PhoneNumber03 contains _______.
a.) the multivalued, multicolumn problem
b.) the inconsistent values problem
c.) the missing values problem
d.) the general-purpose remarks column problem
e.) None of the above is correct.
a.) the multivalued, multicolumn problem
A null value can indicate which of the following conditions?
a.) The value is inappropriate.
b.) The value is appropriate but unknown.
c.) The value is appropriate and known, but not entered into the database.
d.) All of a, b or c are correct
e.) None of the above is correct.
d.) All of a, b or c are correct.
Aggregate functions can be used in the _____ and ______ clauses.
a.) SELECT
b.) HAVING
c.) WHERE
d.) a and b
e.) a, b and c
d.) a and b
A HAVING clause is used to filter rows _____________.
a.) after the grouping action
b.) based on order of WHERE and HAVING
c.) based on filtering action before and after
d.) before the grouping action
e.) a and d
a.) after the grouping action
Divide a result table into groups:
a.) Use a WHERE clause.
b.) Use a GROUP BY clause.
c.) Use an ORDER by after the HAVING clause
d.) Include one ore more aggregates in the SELECT clause listing.
e.) Use a HAVING clause.
b.) Use a GROUP BY clause
A LEFT OUTER JOIN
a.) Executes an inner join
b.) adds back all the rows that are dropped from the first table in the join condition
c.) adds back all the rows that are dropped from the second table in the join condition
d.) output columns from the second table are set to NULL
e.) a, b, and d
d.) output columns from the second table are set to NULL
Which of the following is a type of subquery?
a.) One that operate on lists by use of an unmodified comparison operator
b.) One that operate on lists by use of the IN operator or with a comparison operator modified by the ANY or ALL optional keywords.
c.) One that operate on scalar value by use of the IN operator
d.) One that uses the EXISTS operator to test the existence of data within a list.
e.) One that uses a modified comparison operator (=, <, >, <>) and returns an array of values
b.) One that operate on lists by use of the IN operator or with a comparison operator modified by the ANY or ALL optional keywords.
The advantages of stored procedures is/are:
a.) Shared application logic among various client applications
b.) Faster execution
c.) Reduced traffic network
d.) Improved database security
e.) All of the above
e.) All of the above
SQL Server user variables and parameters start with the symbol __.
a.) /*
b.) #
c.) ##
d.) @
e.) @@
d.) @
Which of the following is not true about stored procedures?
a.) Is a named collection of SQL statements stored in the database
b.) Can be called by name
c.) Can pass parameters
d.) Can return Values
e.) Consistent with other data access types
e.) Consistent with other data access types
The SQL ______ clause contains the condition that specifies which rows are to be selected.
WHERE
The SQL keyword _______ is used in SQL expressions to select on partial values.
LIKE
A join operation is achieved by specifying the equality of the respective column names as a condition in the _____ clause.
WHERE
________ reduces the complexity of the SQL statements needed in an application to read required data.
Denormalization
The SQL keyword __________ can be used to count the number of nulls in a column.
IS NULL
Relations are sometimes left unormalized to improve __________.
performance
Read-only databases are _____ updated.
never
When column name is specified in the COUNT function, rows containing a NULL value in the specified column are __________.
omitted
A _______ JOIN adds back all the rows that are dropped from the second (right) table in the join condition, and ouput columns from the first (left) table are set to NULL.
RIGHT OUTER
A __________ operation is used to produce a result table when the relationship of interest exists among rows that are stored within a single table.
SELF JOIN
When the WHERE clause of a subquery has as its object another subquery, these are termed ___________.
nested subqueries
A _________ is one where the inner query depends on values provided by the outer query.
correlated subquery