Exam 10: Application Development With Views

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

A stylized presentation of data for a selected audience is known as a(n)_____________.

(Short Answer)
4.9/5
(34)

Using the materialization strategy,when a user submits a query using a view,the query defining the view is first executed creating a temporary table,and then the query using the view is executed on the temporary table.

(True/False)
4.9/5
(36)

Only single-table views are updatable with SQL modification statements.

(True/False)
4.8/5
(38)

The use of views in application development can provide the following benefit:

(Multiple Choice)
4.8/5
(35)

The major query formulation issue for hierarchical reports is the _______________ of output,i.e.whether the output should contain individual rows or groups of rows.

(Short Answer)
4.7/5
(34)

Although there are many advantages to using views,the main drawback is that performance can sometimes be poor in processing some complex views.

(True/False)
4.9/5
(28)

In a 1-M updatable query,to insert a row into the child table,you would provide only the values needed to insert a row into the child table.

(True/False)
4.9/5
(31)

If a table name used in a view is changed,the view definition does not have to be changed but the applications using the view must be changed.

(True/False)
4.8/5
(41)

In a 1-M updatable query,to insert a row into both the parent and child tables,you must supply the primary keys and all the required columns of both the parent and child tables.

(True/False)
4.9/5
(34)

Typically in a hierarchical form,the data from the two 1-M tables shown on the main form and the subform would be the result of executing a join query on the two tables for a specific value of the foreign key.

(True/False)
4.8/5
(28)

Figuer: CUSTOMER (primary key = CID) CID CNAME AGE RESID\_CITY Cregion 10 BLACK 40 SD SD 20 GREEN 25 SD SD 30 JONES 30 La Mesa SD 40 MARTIN 35 LA LA 50 SIMON 22 Pomona LA 60 VERNON 60 Poway SD RENTALS (primary key = RTN) CID MAKE DATE\_OUT PICKUP RETURN RTN VIN DATE-IN 10 FORD 10-Oct-00 SD SD 1 F1 01-Dec-00 10 GM 01- Jan-01 SD LA 2 10 FORD 01- Feb-01 LA SD 3 20 NISSAN 07-Jul-00 SD 4 N1 30 FORD 01-Jul-00 SD SD 5 F2 30 -Nov-00 30 GM 01- -Dec-00 SD SD 6 G1 40 FORD 01- Aug-00 LA LA 7 F3 50 GM 01- Sep-00 LA SD 8 G2 60 NISSAN 02 -Jan-01 SD LA 9 In the table RENTALS, RTN provides the rental number (it is the primary key), CID refers to the CID in CUSTOMER, PICKUP is the city where the car was (or will be) picked up and Return is the city where the car was (or will be) returned, VIN is a foreign key that references the table CAR. The rental company has two branches, one in San Diego (SD) and one in Los Angeles (LA). Cars are picked up and returned by the customers at these two locations. RENTCOST MAKE COST FORD 30 GM 40 NISSAN 30 TOYOTA 20 VOLVO 50 In RENTCOST, COST shows the base cost of renting a given MAKE for one day. CAR VIN MAKE RENTED AT F1 FORD NO SD F2 FORD NO SD F3 FORD YES IR F4 FORD NO LA G1 GM YES SD G2 GM YES SD N1 NISSAN YES LA N2 NISSAN NO LA T1 TOYOTA NO IR T2 TOYOTA NO IR V1 VOLVO NO LA V2 VOLVO NO LA The table CAR (primary key = VIN) provides information about each car, in particular if it is currently rented, and where its usual storage location is (attribute AT). CREATE VIEW CUST_SD AS SELECT * FROM CUSTOMER WHERE Cregion = 'SD' CREATE VIEW CUST_40D AS SELECT CNAME, RENTALS.MAKE, RENTCOST.COST FROM CUSTOMER, RENTALS, RENTCOST WHERE CUSTOMER.CID = RENTALS.CID AND RENTALS.MAKE = RENTCOST.MAKE AND RENTCOST < 40 CREATE VIEW Make_View (Make, NumRentals, Cregion, Storageat) AS SELECT RENTALS.MAKE, Count (RTN), Cregion, AT FROM CUSTOMER, RENTALS, CAR WHERE CUSTOMER.CID = RENTALS.CID AND RENTALS.VIN = CAR.VIN GROUP BY RENTALS.MAKE, Cregion, At -The number of columns in the view CUST_SD is:

(Multiple Choice)
4.9/5
(31)

Figuer: CUSTOMER (primary key = CID) CNAME is NOT NULL CID CNAME AGE RESID\_CITY Cregion 10 BLACK 40 SD SD 20 GREEN 25 SD SD 30 JONES 30 La Mesa SD 40 MARTIN 35 LA LA 50 SIMON 22 Pomona LA 60 VERNON 60 Poway SD RENTALS (primary key = RTN) CID is a foreign key referencing CUSTOMER CID is NOT NULL MAKE is NOT NULL MAKE is a foreign key referencing RENTCOST CID MAKE DATE\_OUT PICKUP RETURN RTN 10 FORD 10- Oct-00 SD SD 1 10 GM 01- -Jan-01 SD LA 2 10 FORD 01- Feb-01 LA SD 3 20 NISSAN 07-Jul-00 SD 4 30 FORD 01-Jul-00 SD SD 5 30 GM 01- -Dec-00 SD SD 6 40 FORD 01- Aug-00 LA LA 7 50 GM 01- Sep-00 LA SD 8 60 NISSAN 02 -Jan-01 SD LA 9 RENTCOST MAKE is the primary key MAKE COST FORD 30 GM 40 NISSAN 30 TOYOTA 20 VOLVO 50 (Access) View1: SELECT RTN, MAKE, PICKUP, RENTALS.CID, CUSTOMER.CID, CNAME, AGE, Cregion FROM CUSTOMER INNER JOIN RENTALS ON CUSTOMER.CID = RENTALS.CID (Access) View2: SELECT RTN, MAKE, PICKUP, RENTALS.CID, CNAME, AGE, Cregion FROM CUSTOMER INNER JOIN RENTALS ON CUSTOMER.CID = RENTALS.CID (Access) View3: SELECT RTN, RENTALS.MAKE, PICKUP, RENTALS.CID, CNAME, AGE, Cregion, COST FROM (CUSTOMER INNER JOIN RENTALS ON CUSTOMER.CID = RENTALS.CID. INNER JOIN RENTCOST ON RENTALS.MAKE = RENTCOST.MAKE -(Access)INSERT INTO View2 (RTN,MAKE,PICKUP,RENTALS.CID,CNAME) VALUES (11,'GM','SD',70,'JORDAN' ) Which of the following is true?

(Multiple Choice)
4.9/5
(35)

Which of the following operations is typical in queries for hierarchical reports?

(Multiple Choice)
4.8/5
(37)

Figuer: CUSTOMER (primary key = CID) CNAME is NOT NULL CID CNAME AGE RESID\_CITY Cregion 10 BLACK 40 SD SD 20 GREEN 25 SD SD 30 JONES 30 La Mesa SD 40 MARTIN 35 LA LA 50 SIMON 22 Pomona LA 60 VERNON 60 Poway SD RENTALS (primary key = RTN) CID is a foreign key referencing CUSTOMER CID is NOT NULL MAKE is NOT NULL MAKE is a foreign key referencing RENTCOST CID MAKE DATE\_OUT PICKUP RETURN RTN 10 FORD 10- Oct-00 SD SD 1 10 GM 01- -Jan-01 SD LA 2 10 FORD 01- Feb-01 LA SD 3 20 NISSAN 07-Jul-00 SD 4 30 FORD 01-Jul-00 SD SD 5 30 GM 01- -Dec-00 SD SD 6 40 FORD 01- Aug-00 LA LA 7 50 GM 01- Sep-00 LA SD 8 60 NISSAN 02 -Jan-01 SD LA 9 RENTCOST MAKE is the primary key MAKE COST FORD 30 GM 40 NISSAN 30 TOYOTA 20 VOLVO 50 (Access) View1: SELECT RTN, MAKE, PICKUP, RENTALS.CID, CUSTOMER.CID, CNAME, AGE, Cregion FROM CUSTOMER INNER JOIN RENTALS ON CUSTOMER.CID = RENTALS.CID (Access) View2: SELECT RTN, MAKE, PICKUP, RENTALS.CID, CNAME, AGE, Cregion FROM CUSTOMER INNER JOIN RENTALS ON CUSTOMER.CID = RENTALS.CID (Access) View3: SELECT RTN, RENTALS.MAKE, PICKUP, RENTALS.CID, CNAME, AGE, Cregion, COST FROM (CUSTOMER INNER JOIN RENTALS ON CUSTOMER.CID = RENTALS.CID. INNER JOIN RENTCOST ON RENTALS.MAKE = RENTCOST.MAKE -(Access)INSERT INTO View1 (RTN,MAKE,PICKUP,RENTALS.CID. VALUES (10,'GM','SD',10) Which of the following is not true?

(Multiple Choice)
4.8/5
(37)

A(n)__________________ is a document designed to support a business task,such as processing an order.

(Short Answer)
4.9/5
(33)

Modifications to views,such as deleting rows or changing the primary key column are subject to the integrity rules of the underlying base table.

(True/False)
4.8/5
(34)

Like a form,a report can change the underlying data in the base tables.

(True/False)
4.8/5
(39)

(Access)When implementing a hierarchical report involving two tables in a 1-M relationship,a SQL query using a join on the 1-table and the M-table is formulated,but the linking column is not identified in the query.

(True/False)
4.8/5
(34)

The WITH RESTRICTIONS OPTION clause of the CREATE VIEW statement prevents side effects from occurring when a view is updated.

(True/False)
4.8/5
(34)

Request to execute the following SQL2 command: DELETE FROM CUST_SD WHERE RESID_CITY ='SD' Which of the following statements is not true?

(Multiple Choice)
4.9/5
(34)
Showing 41 - 60 of 75
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)