DBMS_QP

download DBMS_QP

of 3

description

kjbjk

Transcript of DBMS_QP

1. Which of the following terms does refer to the correctness and completeness of the data in a database?a) Data security b) Data constraint c) Data independence d) Data integrity2. A relational database consists of a collection ofa) Tables b) Fields c) Records d) Keys

3. The term _______ is used to refer to a row.a) Attribute b) Tuple c) Field d) Instance

4. For each attribute of a relation, there is a set of permitted values, called the ________ of that attribute.a) Domain b) Relation c) Set d) Schema

5. Database __________ is the logical design of the database, and the database _______ is a snapshot of the data in the database at a given instant in time.a) Instance, Schema b) Relation, Schema c) Relation, Domain d) Schema, Instance

6.Course(course_id,sec_id,semester)Here the course_id,sec_id and semester are __________ and course is a _________ .a) Relations, Attribute b) Attributes, Relation c) Tuple, Relation d) Tuple, Attributes

7. What type of relationship exists between a Teacher table and Class table?a. One to many b. Many to many c. One to one d. Two to two

8. Consider attributes ID , CITY and NAME . Which one of this can be considered as a super key ?a) NAME b) ID c) CITY d) CITY , ID

9. A _____ is a property of the entire relation, rather than of the individual tuples in which each tuple is unique.a) Rows b) Key c) Attribute d) Fields

10. All aggregate functions except _____ ignore null values in their input collection.a) Count(attribute) b) Count(*) c) Avg d) Sum

11. State the differences between physical data independence and logical data independence.

12. What are the responsibilities of a DBA?

13. Mention the different types of database end users.14. Illustrate the use of primary key.

15. State the differences between select and project operations.16. 11.

(a) (i) Construct an E-R diagram for a car-insurance company whose customers own one or more cars each. Each car has associated with it zero to any number of recorded accidents. State any assumptions you make. (5)

(ii) A university registrars office maintains data about the following entities :

(1) Courses, including number, title, credits, syllabus, and prerequisites;

(2) Course offerings, including course number, year, semester, section number, instructor, timings, and classroom;

(3) Students, including student-id, name, and programme; and

(4) Instructors, including identification number, name, department, and title. Further, the enrollment of students in courses and grades awarded to students in each course they are enrolled must be appropriately modeled

.

Construct an E-R diagram for the registrars office.. (8)

With a neat sketch discuss the three-schema architecture of a DBMS. (8) Discuss the various disadvantages in the file system and explain how it can be overcome by the database system. (7)Consider the relational database given below,employee (person-name, street, city)works (person-name , company-name, salary)company (company-name, city)manages (person-name, manager-name )where the primary keys are underlined. Give an expression in SQL to express each of the following queries:(a) Find the names and cities of residence of all employees who work for First Bank Corporation.(b) Find the names, street address, and cities of residence of all employees who work for First Bank Corporation and earn more than $10,000 per annum.(c) Find all employees in the database who do not work for First Bank Corporation.(d) Find the names of all employees in this database who live in the same city as the company for which they work. (e) Modify the database so that Jones now lives in Newtown.(f) Give all managers of First Bank Corporation a 10 percent raise in the salary.(g) Find the company that has the most employees.

(h) Find those companies whose employees earn a higher salary, on average, than the average salary at First Bank Corporation.