CS222 1
CS222 1
SECTION – B
Answer all five questions 5×2M= 10M
11. Explain entity integrity and referential integrity rules in relational model. Show how these are
realized in SQL.
12. Show how each E-R model construct can be mapped to the relational model using suitable example.
13. Explain different languages that are supported to manage the data in a DBMS.
14. Define union compatibility. Explain why INTERSECTION of two relations cannot be performed if
they are not union compatible.
15. Discuss the types of integrity constraints that must be checked for the update operations – Insert and
Delete. Give examples.
1 of 2
Regulation: R13 Code No: CS222/1
SECTION – C
Answer all four questions 4×5M = 20M
16. Explain the concept of generalization and aggregation in E-R diagrams. Give one example for each
one of them.
(OR)
17. Explain the draw backs of traditional file systems with examples.
18. Consider the following relational schemas:
EMPLOYEE (EMPLOYEE_NAME, STREET, CITY)
WORKS (EMPLOYEE_NAME, COMPANYNAME, SALARY)
COMPANY (COMPANY_NAME, CITY)
Write an expression in SQLfor each of the queries below:
i) Find the name of all employees who work for first Bank Corporation
ii) Find the names and company names of all employees sorted in ascending order of company
name and descending order of employee names of that company.
ii) Change the city of first Bank Corporation to ‘New Delhi’
(OR)
19. Consider the following relational database:
STUDENT (name, student#, class, major)
COURSE (course name, course#, credit hours, department)
SECTION (section identifier, course#, semester, year, instructor)
GRADE_REPORT (student#, section identifier, grade)
PREREQUISITE (course#, presequisite#)
Specify the following queries in SQL on the above database schema.
i) Retrieve the names of all students majoring in ‘CS’ (Computer Science).
ii) Retrieve the names of all courses taught by Professor King in 1998
iii) Delete the record for the student whose name is ‘Smith’ and whose student number is
iv) Insert a new course <’Knowledge Engineering’, ‘CS4390’, 3, ‘CS’>
20. Describe what is meant by full functional dependency and describe how this type of dependency
relates to 2NF. Provide an example to illustrate your answer.
(OR)
21. Describe what is meant by transitive dependency and describe how this type of dependency relates
to 3NF. Provide an example to illustrate your answer.
22. Consider a relation R with five attributes ABCDE with functional dependencies:
𝐴 → 𝐵, 𝐵𝐶 → 𝐸 𝑎𝑛𝑑 𝐸𝐷 − 𝐴,
i) List all keys for R ii) is R in 3NF iii) is R in BCNF
(OR)
23. In the BCNF decomposition algorithm, suppose you use a functional dependency α -> β to
decompose a relation schema r(α, β, γ) into r1(α, β) and r2(α, γ).
i) What primary and foreign key constraint do you expect to hold on the decomposed relations?
ii) Give an example of an inconsistency that can arise due to an erroneous update, if the foreign key
constraint were not enforced on the decomposed relations above.
iii) When a relation is decomposed into 3NF, what primary and foreign key dependencies would
you expect will hold on the decomposed schema?
SECTION – D
Answer all two questions 2×10M= 20M
24. What are the various methods of controlling concurrency?
(OR)
25. Differentiate between the following pairs:
i) Conflict equivalent schedule and conflict serializable schedule
ii) View equivalence and view serializable
26. Write about indexed sequential files. What are differences among primary, secondary and clustering
indices?
(OR)
27. What is Query optimization? Explain various steps in query optimization.
2 of 2