Database Midterm Practice

Is this your test? Login to manage it. If not, you can build a quiz just like it.

This is a non-interactive preview of the quiz content.

1.
1 point
Select the FALSE statement.
2.
1 point
In a relational database a synonym for column is
3.
1 point
The order of columns in a relational table (is)
4.
1 point
In a ‘one to many’ relationship between 2 tables, foreign keys are stored in ____ tables.
5.
1 point
You need to insert a new product into a Product table but the classification (a grouping such as “stationery”) into which this product fits is yet to be determined. What would likely be entered for the classification code assuming it is a 3 position character field?
6.
1 point
A primary key created from two or more columns is referred to as a(n) _____ primary key.
7.
1 point
The term “surrogate” is usually associated with
8.
1 point
A "thing" such as a Fixed Asset would likely be considered a(n) ___ in a relational model.
9.
1 point
What is a key attribute?
10.
1 point
SQL provides:
11.
1 point
An application that uses SQL is portable from one DBMS to another
12.
1 point
SQL is a(n)
13.
1 point
What is the maximum character limit of a table name in Oracle 11?
14.
1 point
In Oracle, when a column is declared as a CHAR(x) data type, the maximum value of x is
15.
1 point
What advantage is there to naming constraints?
16.
1 point
Select the FALSE statement.
17.
1 point
One of the following types of constraints was added to tables without using a 'CONSTRAINT' clause. Which one is it?
18.
1 point
What command will list all columns, and their datatypes, of a table?
19.
1 point
Which of the following statements will correctly select all records from the City column of the Offices table, while changing the column header to "City Name Is"?
20.
1 point
Given the following select statement:

SELECT Name
FROM SalesReps
WHERE Name LIKE '_a_';

which of the following would be a likely result set?
21.
1 point
Which of the following is an easier way to write this WHERE clause?

WHERE Quota >= 2000

AND Quota <= 3000
22.
1 point
What is the name of the symbolic constant that can be used in queries to represent the current date?
23.
1 point
What is the name of the function that can convert the value of any column to upper case?
24.
1 point
Under what condition must a column name be qualified with a table name?
25.
1 point
Which of the following is not a type of join discussed in class?
26.
1 point
Does this FROM clause

FROM Offices LEFT OUTER JOIN SalesReps

Mean the same thing as this FROM clause?

FROM SalesReps RIGHT OUTER JOIN Offices
27.
1 point
If there is a FULL-OUTER JOIN between two tables, what will be returned?
28.
1 point
If there is a RIGHT-OUTER JOIN between two tables, what will be returned?
29.
1 point
Which column function will count all records in a result set, regardless of the presence of null values?
30.
1 point
When using the AVG() column function, NULL values are included in the calculation.
31.
1 point
Select the true statement about column functions:
32.
1 point
A SELECT statement that uses column functions can also include a WHERE clause.
33.
1 point
Select the true statements about HAVING clauses from the list below. (There are more than one.)
34.
1 point
What is the correct order of execution of all of the following SQL clauses?
35.
1 point
A subquery can return many columns of data as its query result.
36.
1 point
The ORDER BY clause cannot be used in a subquery.
37.
1 point
Select each of the following statements that refers to Correlated Sub-Queries.
38.
1 point
Select each of the following statements that refer to Non-Correlated Sub-Queries.
39.
1 point
What does SQL lack that makes it different from languages like JAVA and VB .Net (select all that apply)?
40.
1 point
Select the true statement:
41.
1 point
In a one to one relationship the foreign key is stored
42.
1 point
An entity is
43.
1 point
A CHAR(3) field that is set to null contains
44.
1 point
If you run this select:
SELECT *
FROM Customers
What does the ‘*’ give you?
45.
1 point
If you run this select:
SELECT *
FROM Henry.Customers
What is ‘Henry.’?