Site MapHelpFeedbackMultiple Choice Quiz
Multiple Choice Quiz
(See related pages)



1

The company that created SQL is:
A)Microsoft
B)Oracle
C)IBM
D)Informix
2

The recognized standard database language is:
A)Cobol
B)SQL
C)C++
D)Access
3

Which of the following is not a statement type in SQL?
A)Database design
B)Database definition
C)Database manipulation
D)Database control
4

Which of the following is not a SQL database manipulation statement?
A)CREATE TABLE
B)UPDATE
C)DELETE
D)INSERT
5

CUSTOMER
<a onClick="window.open('/olcweb/cgi/pluginpop.cgi?it=jpg::::/sites/dl/free/0072942207/90831/3_1A.jpg','popWin', 'width=NaN,height=NaN,resizable,scrollbars');" href="#"><img valign="absmiddle" height="16" width="16" border="0" src="/olcweb/styles/shared/linkicons/image.gif"> (19.0K)</a>

RENTALS
<a onClick="window.open('/olcweb/cgi/pluginpop.cgi?it=jpg::::/sites/dl/free/0072942207/90831/3_1B.jpg','popWin', 'width=NaN,height=NaN,resizable,scrollbars');" href="#"><img valign="absmiddle" height="16" width="16" border="0" src="/olcweb/styles/shared/linkicons/image.gif"> (28.0K)</a>

In the table RENTALS, Rtn provides the rental number (the primary key). Cname refers to the Cname in Customer, Pickup is the city where the car was picked up, and Return is the city where the car was returned.

RENTCOST
<a onClick="window.open('/olcweb/cgi/pluginpop.cgi?it=jpg::::/sites/dl/free/0072942207/90831/9_1C.jpg','popWin', 'width=NaN,height=NaN,resizable,scrollbars');" href="#"><img valign="absmiddle" height="16" width="16" border="0" src="/olcweb/styles/shared/linkicons/image.gif"> (12.0K)</a>

In RentCost, Cost shows the base cost of renting a given Make for one day.

CITYADJ
<a onClick="window.open('/olcweb/cgi/pluginpop.cgi?it=jpg::::/sites/dl/free/0072942207/90831/9_1D.jpg','popWin', 'width=NaN,height=NaN,resizable,scrollbars');" href="#"><img valign="absmiddle" height="16" width="16" border="0" src="/olcweb/styles/shared/linkicons/image.gif"> (10.0K)</a>

If the return city of table Rentals is the one listed in table CityAdj, the cost of the rental is multiplied by Factor and by Days shown in table RentLength below.

RENTLENGTH
<a onClick="window.open('/olcweb/cgi/pluginpop.cgi?it=jpg::::/sites/dl/free/0072942207/90831/9_1E.jpg','popWin', 'width=NaN,height=NaN,resizable,scrollbars');" href="#"><img valign="absmiddle" height="16" width="16" border="0" src="/olcweb/styles/shared/linkicons/image.gif"> (12.0K)</a>

RENTLENGTH shows the number of days for the rental number (Rtn) of the table Rentals (this table exists for the sake of testing SQL. Normally, the data here should be part of table Rentals.)

The execution of the command
SELECT Cname FROM Customer WHERE Resid_City = BirthPlace
will produce the following number of rows:
A)4
B)3
C)1 or 2
D)0
6

After execution of the command
SELECT Cname
FROM Customer
ORDER BY Resid_City, Cname
the value shown first will be:
A)BLACK
B)GREEN
C)MARTIN
D)VERNON
7

After execution of the query
SELECT Resid_City, AVG(Age) AS Avgage
FROM Customer
GROUP BY Resid_City
The largest value in the column under the heading Avgage will appear in the row showing the following value for Resid_City:
A)CARY
B)ERIE
C)HEMET
D)TAMPA
8

The execution of the SQL query
SELECT DISTINCT C1.Cname
FROM Customer C1, Customer C2
WHERE C1.BirthPlace = C2.Resid_City
will produce the following number of rows:
A)0
B)1 or 2
C)3 or 4
D)5 or more
9

In a SQL query that gets its data from two tables, and where the keywords WHERE, GROUP, ORDER and HAVING appear, which operation is performed before the other ones?
A)Restriction on WHERE conditions
B)Restrictions on HAVING conditions
C)ORDER BY
D)Sort on GROUP BY
10

In a SQL query that gets its data from two tables, and where the keywords WHERE, GROUP, ORDER and HAVING appear, which operation is performed last?
A)Restriction on WHERE conditions
B)Restrictions on HAVING conditions
C)Cross product or join
D)Sort on GROUP BY







Mannino DB Design 3eOnline Learning Center with Powerweb

Home > Chapter 4 > Multiple Choice Quiz