List all customers with more than one car make rented

Assignment Help Database Management System
Reference no: EM131472109

Assignment

1. The information stored in the ____ is used by the DBMS for a recovery requirement triggered by a ROLLBACK statement, a program's abnormal termination, or a system failure such as a network discrepancy or a disk crash
A. data dictionary
B. transaction log
C. metadata
D. rollback manager

2. Which of the following is an example of lost update?
A. The system assigns the last aisle seat on a flight to John whereas Peter receives a window seat, although both indicated preference for an aisle seat
B. John and Peter receive each a window seat as they both requested
C. John is initially assigned the last window seat, but this seat is later on assigned to Peter
D. None of the above

3. Julia has a lock on the savings account and Bill is trying to perform a conflicting action on the data:
A. Bill's transaction must wait until Julia's lock is released
B. Bill's transaction must wait until Julia has read the savings account value
C. Bill's transaction is granted permission to perform the desired action
D. None of the above

4. Julia has a shared lock on the savings account and Bill is trying to perform an action requesting a shared lock on the same data:
A. Bill's transaction must wait until Julia has read the savings account value
B. Bill's transaction must wait until Julia's lock is released
C. Bill's transaction is granted permission to perform the desired action
D. None of the above

5. Julia has an exclusive lock on the savings account and Bill is trying to perform an action requesting a shared lock on the same data:
A. Bill's transaction must wait until Julia's lock is released
B. Bill's transaction is granted permission to perform the desired action
C. Bill's transaction must wait until Julia has read the savings account value
D. None of the above

6. Which of the following will cause a deadlock?
A. Transaction T1 requests an exclusive lock on data A at the same time as transaction T2
B. Transaction T1 places an exclusive lock on data A, then transaction T2 requests a shared lock on data A
C. Transaction T1 and T2 modify data A without any lock
D. Transaction T1 places an exclusive lock on data A, then requests one on data B. Simultaneously, transaction T2 places an exclusive lock on data B, then requests one on data A

7. Consider a transaction that updates each of the 100 employees' salaries in a table (there is one row per employee) under the immediate update mode. The transaction terminates abnormally after 10 rows have been updated in the database (and the normal operations have taken place on the log). What should the recovery procedure perform to make sure the transaction completes as desired?
A. Redo
B. Redo followed by execution of the transaction again
C. Undo followed by execution of the transaction again
D. Undo

8. The _______________ query will output the table contents when the value of the character field P_CODE is alphabetically less than 1558-QW1.
A. SELECT P_CODE, P_DESCRIPT, P_QOH, P_MIN, P_PRICE
FROM PRODUCT
WHERE P_CODE <'1558-QW1';
B. SELECT P_CODE, P_DESCRIPT, P_QOH, P_MIN, P_PRICE
FROM PRODUCT
WHERE P_CODE = [1558-QW1]
C. SELECT P_CODE, P_DESCRIPT, P_QOH, P_MIN, P_PRICE
FROM PRODUCT
WHERE P_CODE = (1558-QW1)
D. SELECT P_CODE, P_DESCRIPT, P_QOH, P_MIN, P_PRICE
FROM PRODUCT
WHERE P_CODE = {1558-QW1}

9. The primary objective of database design is __________________.
A. To create the most efficient database possible
B. To create the fastest queries
C. To create complete, normalized, nonredundant, and fully integrated conceptual, logical, and physical database models
D. To be able to add data quickly

10. The command to join the P_DESCRIPT and P_PRICE fields from the PRODUCT table and the V_NAME, V_AREACODE, V_PHONE, and V_CONTACT fields from the VENDOR table where the value of V_CODE match is ________________.
A. SELECT P_DESCRIPT, P_PRICE, V_NAME, V_CONTACT, V_AREACODE, V_PHONE
FROM PRODUCT, VENDOR
WHERE PRODUCT.V_CODE <> VENDOR.V_CODE;
B. SELECT P_DESCRIPT, P_PRICE, V_NAME, V_CONTACT, V_AREACODE, V_PHONE
FROM PRODUCT, VENDOR
WHERE PRODUCT.V_CODE = VENDOR.V_CODE;
C. SELECT P_DESCRIPT, P_PRICE, V_NAME, V_CONTACT, V_AREACODE, V_PHONE
FROM PRODUCT, VENDOR
WHERE PRODUCT.V_CODE <= VENDOR.V_CODE;
D. SELECT P_DESCRIPT, P_PRICE, V_NAME, V_CONTACT, V_AREACODE, V_PHONE
FROM PRODUCT, VENDOR
WHERE PRODUCT.V_CODE => VENDOR.V_CODE;

11. User requirements, existing system evaluation, and logical system design are part of the __________ phase of the SDLC.
A. planning
B. analysis
C. detailed systems design
D. Implementation

12. The conceptual design steps determines end-user views, outputs, and transaction-processing requirements are ________________.
A. Database analysis and requirements
B. Entity relationship modeling and normalization
C. Data model verification
D. Distributed database design

13. ___________________ is a disadvantage of a DDBMS.
A. Data is located near the "greatest demand" site
B. Growth facilitation
C. Danger of a single-point failure
D. Lack of standards

14. A consistent and well-designed database is _____________________.
A. One in which all tables have foreign keys
B. One in which all tables are de-normalized
C. One in which all data integrity constraints are satisfied
D. One in which all SQL statements only query one table at a time

15. The ____ contains business data extracted from the operational database and from external data sources.
A. Data warehouse
B. Data visualization tool
C. Data dictionary
D. ETL tool

16. The ________________ command is used to list a unique value for V_CODE, where the list will produce only a list of those values that are different from one another.
A. SELECT ONLY V_CODE
FROM PRODUCT;
B. SELECT UNIQUE V_CODE
FROM PRODUCT;
C. SELECT DIFFERENT V_CODE
FROM PRODUCT;
D. SELECT DISTINCT V_CODE
FROM PRODUCT;

17. All transactions must display _____________________.
A. atomicity, serializability, and durability
B. durability, atomicity, consistency, and isolation
C. serializability, durability, and isolation
D. durability and isolation

18. The ANSI has defined standards that govern SQL database transactions. Transaction support is provided by two SQL statements: ____________________ and ROLLBACK.
A. RETRIEVE
B. ASSIGN
C. UPDATE
D. COMMIT

19. Joe is working on the Course table and needs to know which courses have prerequisite. To find the information he would ____________.
A. create a new query
B. create a new table
C. create a new form
D. create a new constraint

Use the following tables (with partial data shown) for a car rental database to answer questions 20-25:

CUSTOMER

CID

CNAME

AGE

RESID CITY

BIRTHPLACE

10

BLACK

40

ERIE

TAMPA

20

GREEN

25

CARY

ERIE

30

JONES

30

HEMET

TAMPA

40

MARTIN

35

HEMET

TAMPA

50

SIMON

22

ERIE

ERIE

60

VERNON

60

CARY

CARY

In table CUSTOMER, CID is the primary key (Customer ID).

RENTALS

CID

MAKE

DATE OUT

PICKUP

RETURN

RTN

10

FORD

10-Oct-1994

CARY

CARY

1

10

GM

01-Nov-1995

TAMPA

CARY

2

10

FORD

01-Jan-1995

ERIE

ERIE

3

20

NISSAN

07-Jul-1994

TAMPA

TAMPA

4

30

FORD

01-Jul-1995

CARY

ERIE

5

30

GM

01-Aug-1995

ERIE

ERIE

6

40

FORD

01-Aug-1994

CARY

ERIE

7

50

GM

01-Sep-19/95

ERIE

CARY

8

70

TOYOTA

02-Sep-1995

RENO

RENO

9

In the table RENTALS, RTN provides the rental number (the primary key), CID is the customer's unique id, PICKUP is the city where the car was picked up, and Return is the city where the car was returned.

RENTCOST

MAKE

COST

FORD

30

GM

40

NISSAN

30

TOYOTA

20

VOLVO

50

RENTCOST shows the base cost of renting a given MAKE for one day.

CITYADJ

CITY

FACTOR

CARY

1

ERIE

1.1

RENO

0.9

TAMPA

0.8

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

RTN

DAYS

1

1

2

3

3

2

4

2

5

4

6

2

7

3

8

1

RENTLENGTH shows the number of days for the rental number (RTN) shown in table RENTALS. In a database used in reality, this table would be merged with the RENTALS table.

20. SELECT DISTINCT CID, CNAME

FROM CUSTOMER
WHERE CID IN
(SELECT CID FROM RENTALS WHERE MAKE IN ('FORD', 'TOYOTA'))
The CNAMEs shown by the execution of this query are:
A. BLACK
B. BLACK, JONES
C. BLACK, JONES, MARTIN
D. BLACK, JONES, MARTIN, VERNON

21. SELECT DISTINCT CUSTOMER.CID, CNAME
FROM CUSTOMER, RENTALS, RENTCOST
WHERE CUSTOMER.CID = RENTALS.CID
AND RENTALS.MAKE = RENTCOST.MAKE AND NOT EXISTS
(SELECT * FROM RENTALS R, RENTCOST C
WHERE R.MAKE = C.MAKE
AND RENTALS.CID = R.CID
AND RENTCOST.COST <> C.COST)
The meaning of this query is:
A. List all customers with more than one car make rented
B. List all customers with one or more rentals for which the cost of each car make rented is the same
C. List all customers who have only rented one make
D. None of the above

22. SELECT MAKE
FROM RENTALS, CUSTOMER
WHERE RENTALS.CID = CUSTOMER.CID AND RESID_CITY = 'HEMET'
GROUP BY MAKE
HAVING COUNT (DISTINCT RENTALS.CID) =
(SELECT COUNT(*) FROM CUSTOMER
WHERE RESID_CITY = 'HEMET')
The execution of this query produces the following number of rows:
A. 0
B. 1
C. 2
D. 3

23. SELECT MAKE
FROM RENTALS, CUSTOMER
WHERE RENTALS.CID = CUSTOMER.CID AND RESID_CITY = 'HEMET'
GROUP BY MAKE
HAVING COUNT (DISTINCT RENTALS.CID) =
(SELECT COUNT(*) FROM CUSTOMER
WHERE RESID_CITY = 'HEMET')
The meaning of this query is the following:
A. List all makes of cars rented to customers residing in Hemet
B. List all makes of cars rented to at least one customer residing in Hemet
C. List all makes of cars rented to all customers residing in Hemet
D. None of the above

24. SELECT CID, CNAME FROM CUSTOMER
WHERE 0 =
(SELECT COUNT(*) FROM RENTALS
WHERE CUSTOMER.CID = RENTALS.CID)
What is the interpretation of this query?
A. List the customers who do not have rentals
B. List the customers who have one rental
C. List the customers who have 0 or more rentals
D. List the customers who have 1 or more rentals

25. SELECT CNAME, DATE_OUT, RTN
FROM CUSTOMER, RENTALS
WHERE CUSTOMER.CID = RENTALS.CID AND BIRTHPLACE IN ('ERIE', 'CARY') AND EXISTS
(SELECT * FROM RENTCOST
WHERE COST < 40 AND RENTALS.MAKE= RENTCOST.MAKE)
The CNAMEs shown by the execution of this query are:
A. SIMON
B. GREEN, BLACK, SIMON
C. GREEN
D. GREEN, SIMON.

Reference no: EM131472109

Questions Cloud

Identify benefits among certain organizational theories : Are you able to better identify benefits among certain organizational theories?
Principles of economics rather than evidence-based medicine : Discuss why the operation of the nation’s mental health system might be primarily based on principles of economics rather than evidence-based medicine.
What is the legal ramification : When making a statement with the idea that an offer is being made, the offeror must distinguish his statement from what other types of statements?
Is doctors offer considered a counteroffer : O'Mally offers to sell her townhouse to Doctor for $200,000. Doctor asks her if she would be willing to accept $175,000. Is Doctor's offer considered.
List all customers with more than one car make rented : List all customers with more than one car make rented. What should the recovery procedure perform to make sure the transaction completes as desired?
Weighting the risks : Weighting the Risks and discuss what lessons contained in the article are important and useful to you as a project manager.
Was this acceptance valid or not : Park used her digital recorder to record an offer she wished to make to Reape by mail. Her secretary typed the offer and placed it on Park's desk for Park.
Maintaining competitive advantage at global level : utilised as a vehicle in supporting SMEs maintaining competitive advantage at global level.
Customer relationship management technology : On the basis of the key elements of the CRM (customer relationship management) technology,

Reviews

Write a Review

Database Management System Questions & Answers

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd