Which of the following is not a step in the Systems Development Life Cycle (SDLC)?
Front
all of the above
Back
Which of the following types of constraints is used to enforce referential integrity?
Front
FOREIGN KEY
Back
Which of the following symbols cannot be used in a table name?
Front
%
Back
Data in first normal form (1NF) does not contain which of the following?
Front
repeating groups
Back
Partial dependency exists if what conditions exist?
Front
a column is dependent only on a portion of a composite
Back
Data in third normal form (3NF) contains which of the following?
Front
Back
Data mining refers to ____.
Front
the extraction of hidden predictive information from large databases.
Back
The asterisk symbol (*) can be used in a SELECT statement to indicate that all rows in the table should be displayed in the results.
Front
Back
Explain the similarities and differences between the UNIQUE and PRIMARY KEY constraints.
Front
Both validate the uniquness of a value, but the UNIQUE constraint allows NULL values.
Back
Which of the following datatypes refers to variable-length character data, where n represents the maximum length of the column?
Front
VARCHAR2(n)
Back
DDL commands are used to create or modify database objects
Front
true
Back
In which step of the Systems Development Life Cycle (SDLC) is the solution to the identified problem determined and understood?
Front
systems analysis
Back
A foreign key is usually found on which side of a relationship?
Front
many
Back
What steps/tasks are required to convert unnormalized data to third normal form (3NF)?
Front
Back
Combining the contents of two or more columns is known as ____.
Front
concatenation
Back
A DBMS includes which of the following capabilities?
Front
all of the above
Back
Data is in second normal form (2NF) if it contains no repeating groups and has a primary key to uniquely identify each record.
Front
False
Back
Which of the following keywords can be included in a SELECT statement to suppress duplicate data?
Front
DISTINCT
Back
In an E-R Model a person, place, or thing with characteristics to be stored in the database are referred to as?
Front
entity
Back
Which of the following symbols can be used to combine data from different columns into one column of output?
Front
||
Back
The ALL option can be used in the SELECT clause to indicate that all columns should be retrieved.
Front
true
Back
A FOREIGN KEY constraint can be added to the column of a table to ensure that the referenced data value actually exists in the other table
Front
True
Back
What are the mandatory clauses of a SELECT statement and what do they represent?
Front
Back
Which of the following statements about the FOREIGN KEY constraint is incorrect?
Front
The constraint can reference any column in another table, even a column that has not been designated as the primary key for the referenced table.
Back
Concatenation refers to combining the results of several SELECT statements into one result
Front
True?
Back
The only required clauses for a SELECT statement are the WHERE and FROM clauses. _________________________
Front
true
Back
Which of the following does not contain repeating groups, but has a primary key and possibly partial dependencies?
Front
firt normal form
Back
The use of a column alias in the SELECT clause can be designated by the keyword ALIAS.
Front
Back
Which of the following rules does not apply to column names in Oracle 12c?
Front
Column names can contain an ampersand (&).
Back
A(n) WHERE statement allows a user to retrieve data from a database table. _________________________
Front
From
Back
A column heading that is longer than the width of a column will not be truncated for a column that is defined to store character data. _________________________
Front
False
Back
A UNIQUE constraint is the same as a PRIMARY KEY constraint, except that it will accept NULL values.
Front
true
Back
If the data has no partial dependencies, repeating groups, or transitive dependencies, and has a composite primary key, the data is in which form?
Front
third normal
Back
A column represents a field in the physical database table.
Front
true
Back
Which of the following is a valid column name?
Front
NEW_COLUMN
Back
Data mining refers to analyzing historical data stored in a database.
Front
True?
Back
Explain how the DISTINCT keyword effects a SELECT statement that lists two columns in the SELECT clause.
Front
Back
Which of the following rules apply to table names in Oracle 12c?
Front
Names can contain a number sign (#).
Back
In which step of the Systems Development Life Cycle (SDLC) are the logical and physical components defined?
Front
systems design
Back
Data manipulation language commands are used to create or modify database tables.
Front
false
Back
A CHAR column cannot be resized to a width that is smaller than the data it already contains.
Front
True
Back
What is the purpose of a foreign key?
Front
Back
A CHECK constraint requires that a data value meet a certain condition before the record is added to the database table.
Front
true
Back
In which step of the Systems Development Life Cycle (SDLC) is the system actually used by the end-user on a regular basis?
Front
systems deployment
Back
Which of the following keywords is used to mark a column for deletion at a later time?
Front
ALTER TABLE...SET UNUSED
Back
A bridging table can be used to eliminate a many-to-many relationship in a relational database.
Front
true
Back
What is the purpose of an E-R Model?
Front
A logical representation of the data for an organization or for a business area, using entities for categories of data and relationships for associations between entities
Back
What is the difference between how a NOT NULL constraint is added to an existing column and how other types of constraints are added?
Front
The NOT NULL constraint can only be added to an existing column using the MODIFY clause of the ALTER TABLE command, while other types of constraints can be added using the ADD clause of the ALTER TABLE command.
Back
A string literal must be enclosed in ____.
Front
""
Back
Data in second normal form (2NF) may contain which of the following?
Front
true
Back
Section 2
(50 cards)
A column name can consist of up to 225 characters.
Front
true
Back
What is the relationship between a NOT NULL constraint and a CHECK constraint?
Front
NOT NULL is a special CHECK where the condition is not a NULL value.
Back
Which of the following keywords is used to remove a database table in Oracle 12c?
Front
DROP TABLE
Back
Comparison operators are used to combine search conditions
Front
false
Back
Which of the following clauses is used to indicate a particular sort sequence for presenting query results?
Front
ORDER BY
Back
What is the difference between a shared and exclusive lock?
Front
A shared lock allows other users to view information on a table but not alter it. An exlusive lock is put on a table so no other user can alter or update the table's contents.
Back
Based upon the contents of the BOOKS table in the accompanying figure, which of the following queries will retrieve all book titles that are in the Business or Computer category and have a retail price of more than $35.00?
Front
SELECT title FROM books
WHERE (category = 'BUSINESS' OR category ='COMPUTER' ) AND retail >35;
Back
Based upon the contents of the BOOKS table in the accompanying figure, which of the following queries will return all books that cost at least $25.00?
Front
SELECT * FROM books
WHERE cost >= 25.00;
Back
A lock is automatically released when the user issues a transaction control statement such as COMMIT or ROLLBACK.
Front
true
Back
Which of the following is displayed by the DESCRIBE command?
Front
all of the above
Back
To instruct Oracle12c to sort data in ascending order, enter ____ after the column name in the ORDER BY clause
Front
ASC
Back
A shared lock prevents another user from performing DDL or DML operations on the table
Front
false
Back
A(n) ____ lock will prevent any DDL operations from being performed on the locked table
Front
exclusive
Back
Commands used to modify data are called ____ commands
Front
data manipulation language (DML)
Back
A NULL value is the same as a blank space.
Front
false
Back
A NULL value can be included in the data being added to a table by explicitly entering the word NULL.
Front
true
Back
What special consideration needs to be given to search conditions when they are being compared to character or date columns?
Front
A primary sort is the first column a table is ordered by.and a secondary sort is a second field to sort a table by.
Back
Which of the following commands will drop any columns marked as unused from the TABLEA table?
Front
ALTER TABLE tablea DROP UNUSED COLUMNS;
Back
The data being inserted into a table are listed in the ADD clause of the INSERT command.
Front
false
Back
The DELETE TABLE command can be used to delete all the data stored in a table and release the storage space, yet retain the structure of the table. _________________________
Front
false
Back
Which of the following is the standard abbreviation for the constraint NOT NULL?
Front
nn
Back
Based upon the contents of the BOOKS table in the accompanying figure, which of the following queries will return the category and title of all books stored in the BOOKS table presented in order of their category and, for the books in the same category, sort the title of the books in descending order?
Front
SELECT category, title FROM books
ORDER BY 1 ASC, 2 DESC;
Back
When the WHERE clause contains multiple types of operators, which of the following is resolved last?
Front
logical operators
Back
What is the difference between a standard SELECT statement and a SELECT...FOR UPDATE statement?
Front
The SELECT .. FOR UPDATE command places a shared lock on records to be changed.
Back
To find rows containing a NULL value in a specified column, you must use the search condition of = NULL.
Front
false
Back
Which of the following statements about a PRIMARY KEY is incorrect
Front
Which of the following statements about a PRIMARY KEY is incorrect
Back
Which of the following is a valid statement?
Front
all of the above
Back
DML commands are used to create or modify database tables.
Based upon the contents of the BOOKS table in the accompanying figure, which of the following queries will retrieve all books stored in the BOOKS table with Pubid 1 or 2 or that have a retail price of at least $42.00?
Front
SELECT * FROM books
WHERE pubid = 1 OR pubid = 2 OR retail >= 42;
Back
When does a COMMIT command implicitly occur
Front
When the user issues a DDL command such as CREATE or ALTER TABLE.
Back
A COMMIT is explicitly issued when the user exits SQL*Plus. _________________________
Front
false
Back
Which of the following is not a valid comparison operator?
Front
=>
Back
Which of the following symbols can be used in a column name?
Front
#
Back
A column alias that has been defined in the SELECT clause of a SELECT statement cannot be referenced in an ORDER BY clause
Front
false
Back
A(n) ____ in a SQL command instructs Oracle 12c to use a substituted value in place of the variable at the time the command is actually executed.
Front
substitution variable
Back
Which of the following keywords must have been included during the creation of a FOREIGN KEY constraint to allow a row from the parent table to be deleted, even if it is referenced by a row in the child table?
Front
ON DELETE CASCADE
Back
What is the difference between dropping a column with the DROP COLUMN clause and setting a column as unused with the SET UNUSED clause?
Front
Setting it as unused will allow you to mark the column to be deleted at a later time.
Back
Which of the following constraints cannot be added to an existing table with the ADD clause of the ALTER TABLE command
Front
NOT NULL
Back
A lock arising from a SELECT...FOR UPDATE command will be released when ____.
Front
a COMMIT command is executed
Back
Explain the difference between an implicit and an explicit COMMIT.
Front
An explicit COMMIT occurs when you enter a COMMIT statement, an implicit COMMIT occurs when you exit client tools.
Back
A table that has been dropped without the PURGE option can be retrieved using the FLASHBACK TABLE command.
Front
true
Back
table can be locked in SHARE MODE or EXCLUSIVE MODE. _________________________
Front
true
Back
A subquery can be used with the INSERT command to enter data from an existing table into the destination table.
Front
true
Back
What is the problem associated with changing the name of a table?
Front
If you don't inform users of the name change it could prevent them from finishing their work or accessing the table
Back
A user who is issuing DML commands can save modified data or undo uncommitted changes by issuing ____ statements.
Front
transaction control
Back
Which of the following statements about the DELETE command is incorrect?
Front
If you omit the mandatory WHERE clause, an error message will be issued
Back
If you don't inform users of the name change it could prevent them from finishing their work or accessing the table
Front
true
Back
A FOREIGN KEY constraint will not allow a row containing a NULL value in the foreign key column to be added to the table.
Front
false
Back
What is the purpose of the ORDER BY clause?
Front
It is used to display query results in a sorted order.
Back
Section 3
(50 cards)
The only group function that includes NULL values by default is the MIN function
Front
false
Back
The > operator is referred to as a(n) ____ operator
Front
single-row
Back
A user can perform a DML operation (add, modify, delete) on a simple view if it does not violate which type of existing constraint on the underlying base table?​
Front
all of the above
Back
The ____ function is used to calculate the total amount stored in a numeric field.
Front
SUM
Back
Which of the following queries will return the same results as the following SQL statement?
SELECT c.customer#, lastname, firstname, order#
FROM customers c, orders o
WHERE c.customer# = o.customer#;
Front
both a and b
Back
Which of the following keywords can be used to join two tables that do not contain a commonly named and defined column
Front
JOIN...USING
Back
Based upon the contents of the BOOKS table in the accompanying figure, which of the following queries will retrieve all books published in 2001?
Front
all of the above
Back
A subquery, except one in the FROM clause, cannot contain a(n) ____ clause.​
Front
ORDER BY
Back
The JOIN keyword is used in the WHERE clause to indicate the tables that should be joined or linked.
Front
false
Back
A multiple-column subquery cannot be nested in a WHERE clause
Front
false
Back
Explain the difference between an inner join and an outer join
Front
An inner join gives an intersection of the row in common, an outer join combines all the rows.
Back
A temporary table that is created when a multiple-column subquery is used in the FROM clause of an outer query is called a(n) ____.​
Front
inline view
Back
The default keyword for group functions is ____.
Front
ALL
Back
AVG, COUNT, and STDDEV are all considered group functions
Front
true
Back
Based upon the contents of the BOOKS table in the accompanying figure, which of the following SQL statements will retrieve all books published by the publisher assigned Pubid 1?
Front
SELECT * FROM books WHERE pubid = 1;
Back
A deadlock occurs when two users hold shared locks on portions of a table that are needed to complete the transaction of the other user.
Front
true
Back
A(n) ____ is used to indicate how data should relate to a given search condition.
Front
comparison operator
Back
A(n) ____ is used to combine the results of two queries.
Front
set operator
Back
If it is possible for a subquery to return a NULL value to the outer query for comparison, the ____ function should be used to substitute an actual value for the NULL.
Front
NVL
Back
A group function cannot be included in the SELECT clause of a single-row subquery
Front
false
Back
When a self-join is created, each copy of the table must be assigned a table alias.
Front
true
Back
Give the appropriate situation in which to use each of the following join keywords: NATURAL JOIN, JOIN...USING, and JOIN...ON.
Front
NATURAL JOIN = used in the FROM clause to join table containing a common column with the same name and definition
JOUN... USING =identifies the common column used to join the tables
JOIN ... ON = identifies the column used to join tables
Back
Functions that return one result per group of rows are called ____ functions.
Front
all of the above
Back
Describe how the COUNT function processes NULL values when the function is executed.
Front
Use an asterisk, so when an asterisk is encountered, the entire record is counted, so a NULL in one column doesn't cause the row to be ignored.
Back
The ON clause can be used only if the tables being joined have a common column with the same name.
Front
False
Back
Explain the difference between a WHERE and a HAVING clause.
Front
A WHERE clause is used for filtering rows, and a HAVING clause is used to filter groups.
Back
When a SELECT statement includes WHERE, HAVING, and GROUP BY clauses, the GROUP BY clause is always evaluated first
Front
false
Back
Which of the following SQL statements will list the name of each customer stored in the customers table, and, if the customer has placed an order that is contained in the ORDERS table, the order# of any order each customer has placed?bith
Front
both a and c
Back
Based on the contents of the BOOKS table, which of the following SQL statements will return an error message?
Front
none of the above
Back
How is a "TOP-N" analysis performed?
Front
A TOP-N analysis is performed by determining if the rows ROWNUM value is less or equal to N.
Back
Explain how nested group functions are processed
Front
In nested group functions the inner function is resolved first.
Back
​A single-row subquery can return several columns, but only one row, of results to the outer query.
Front
false
Back
Which command will delete a view
Front
DROP VIEW
Back
Which of the following keywords is used to create a Cartesian join?
Front
CROSS JOIN
Back
Which of the following is a correct statement
Front
An asterisk can be used as the argument for the COUNT function to include NULL values in the results.
Back
The outer join operator in the WHERE clause cannot be used with which of the following operators
Front
both a and b
Back
The outer join operator is used to combine the results of multiple SELECT statements
Front
False
Back
TOP-N" analysis can be used to find the highest values in a column by sorting the data in ascending order
Front
false
Back
Group functions return a group of results per row processed
Front
false
Back
Based on the contents of the BOOKS table, which line of the following SQL statement contains an error?
1 SELECT isbn, title
2 FROM books
3 WHERE pubid =
4 (SELECT pubid
5 FROM books
6 WHERE title = 'SHORTEST POEMS')
7 AND retail-cost >
8 (SELECT AVG(retail-cost)
9 FROM books);
Front
none of the above
Back
Which of the following is not considered a group function?
Front
TRUNC
Back
Which of the following can only be used to link tables that have a common column?
Front
NATURAL JOIN
Back
Which of the following SQL statements will list the name of each customer stored in the CUSTOMERS table, and, if the customer has placed an order that is contained in the ORDERS table, the order# of any order each customer has placed?
Front
SELECT lastname, firstname, order#
FROM customers c LEFT OUTER JOIN orders o
ON c.customer# = o.customer#;
Back
Group functions are also known as aggregate functions
Front
true
Back
The most common type of join is an equijoin, which joins two or more tables together based upon the tables having equivalent data values in a common column.
Front
true
Back
Based on the contents of the BOOKS table, which of the following SQL statements will display the title of all books published by the publisher of SHORTEST POEMS?
Front
none of the above
Back
Which of the following SQL statements will display the gift that should be sent to any customer who orders the book titled THE WOK WAY TO COOK?
Front
none of the above
Back
By default, the SUM function assumes the ALL keyword and the result will include multiple occurrences of numeric values
Front
true
Back
When combining the results of two SELECT statements with the UNION keyword, duplicate rows are suppressed in the results
Front
false
Back
Explain the purpose of a set operator.
Front
UNION = Returns the results of both queries and removes duplicates
UNION ALL = Returns the results of both queries and includes duplicates
INTERSECT = Returns only the rows included in the results of both queries
Back
Section 4
(20 cards)
Which comparison operator allows you to search for NULL values in a subquery?
Front
IS NULL
Back
Explain the different processing methods used by correlated and uncorrelated subqueries
Front
In an uncorrelated subquery, the subquery is exectued first, the results are passed to the outer query, then the outer query is executed. A correlated subquery refrences an outer query, then the exists operator is used to test if a link is present.
Back
A view can be created to simplify issuing complex SQL queries.
Front
true
Back
a complex view can retrieve data from more than one table
Front
true
Back
If a subquery is nested in a HAVING clause, the subquery must be on the right side of the comparison operator
Front
true
Back
A view based on the contents of one table that uses an expression for one of the columns is considered a(n) ____ view.​
Front
complex
Back
​Which clause is used when the group results of a subquery need to be restricted, based on some condition?
Front
HAVING
Back
A group function can be used in a(n) inline view
Front
true
Back
Based on the contents of the BOOKS table, which line in the following SQL statement contains an error?
1 SELECT title
2 FROM books
3 WHERE pubid EXISTS IN
4 (SELECT pubid
5 FROM books
6 WHERE retail > 41.95);
Front
Line 3
Back
How do the following three types of views differ in terms of the data they can contain: simple view, complex view and inline view?
Front
A simple view references only one table and doesn't include a group function. A complex view can retrieve data from more than one table and can contain group functions. An inline view exists only while the command is being executed.
Back
A subquery is required when the condition for the outer query is based upon an unknown
Front
true
Back
A correlated subquery is one in which the inner query is executed first, and then the outer query is executed
Front
false
Back
How does a materialized view differ from the other types of views?
Front
A materialized view replicates data
Back
The results of the outer query are passed to the inner query.
Front
false
Back
A complex view cannot contain any group functions
Front
false
Back
Explain the difference between multiple-row and multiple-column subqueries.
Front
Multiple-row subqueries return more than row of results using WHERE and HAVING clauses. Multiple-column returns columns to an outer query using FROM, WHERE, or HAVING.
Back
The results of a subquery are passed back as input to the ____ query.
Front
outer
Back
The following SQL statement contains what type of subqueries?
SELECT isbn, title FROM books WHERE pubid =
(SELECT pubid FROM books WHERE title = 'SHORTEST POEMS')
AND retail-cost >
(SELECT AVG(retail-cost) FROM books);
Front
single row
Back
he ____ operator is used to determine whether a condition is present in a subquery.
Front
EXISTS
Back
Which type of view is created with the following command?
​ CREATE VIEW inventory AS SELECT isbn, title, retail price
FROM books
WITH READ ONLY;