database management systems jan 2014

2
USN 06css4 Fifth Semester B.E. Degree Examination, Dec.2013 / Jan.2014 Database Management Systems Time: 3 hrs. Max. Marks:100 Note: Answer any FIVE full questions, selecting atleast TWO question from eoch part. PART _ A la. b. c. a. b. 3a. b. (.) o o ! d 6 o () ! EP j bol troo g() -O a2 a= oO bQa >(i '(, cO _?o 'ia Oj: :q o.j o= to a(;: C'- !o =,: bo- .OO o= *o F> o (r< - a.l (.) Z o a E Explain Tluee - level schema architecture, with a neat diagram. (08 Marks) Define Data model. Briefly explain Object based and Record based data models. (08 Marks) What are the functions of Database administrator (DBA). (04 Marks) Define the following terms, with an example for each : i) Mapping cardinalities ii) Strong entity iii) Degree of a relation iv) Ternary relationship v) Foreign key. (10 Marks) Design E * R diagram for keeping track of information about COMPANY database taking into account at least four entities. (10 Marks) Explain Binary relational algebra operations, with example. Consider the following relations and write relational algebra expressions SUPPLIER (S-id, S-name, S - address) PARTS (P-id, P - name, colour) CATALOG (S-id, P-id, cost) i) Retrieve the name of all the suppliers who supply yellow parts. ii) Retrieve the name of the suppliers. who supply both Blue and Black iii) Retrieve the name of the suppliers who supply all parts. 5a. b. C. a. With respect to SQL, explain with example : i) The DROP command ii) The ALTER command. (08 Marks) Consider the following tables, write the SQL statements for the following queries: CATALOG (book-id, title, au-id, p-id, Catg-id) AUTHOR (au-id, name, city, country) PUBLISHER (p-id, name, city, country) CATEGORY ( cat-id. descript ion) MEMBER (m-id, name, address, city, state) ORDER - SUMMARY (O-no, m-id, o-date, amount) ORDER - DETAILS (O-no, book-id, quantity) i) Display details of all the members who have placed an order for the book 'CODING'. ii) Display the name of all the books for which an order has been placed. iii) Display the name of all the authors who have more than 2 books in catalog. (12 Marks) PART _ B With example, explain aggregate functions in SQL. (10 Marks) Explain INSERT, DELETE and UPDATE statements in SQL with example. (06 Marks) What is a VIEW? What are the advantages of view? (04 Marks) ourt/,.V, )/ 5 5; 1,,1r;:r.l--il - -1+2 Mfrks) For More Question Papers Visit - www.pediawikiblog.com For More Question Papers Visit - www.pediawikiblog.com www.pediawikiblog.com

Upload: prasad-c-m

Post on 14-May-2017

217 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Database Management Systems Jan 2014

USN 06css4

Fifth Semester B.E. Degree Examination, Dec.2013 / Jan.2014Database Management Systems

Time: 3 hrs. Max. Marks:100

Note: Answer any FIVE full questions, selecting atleast TWO question from eoch part.

PART _ A

la.b.c.

a.

b.

3a.b.

(.)oo!

d

6

o()!

EP

j

boltroo

g()

-O

a2

a=

oO

bQa

>(i

'(, cO

_?o'iaOj:

:q

o.j

o=toa(;:C'-!o

=,:bo-.OOo=*oF>o

(r<- a.l

(.)

Z

oaE

Explain Tluee - level schema architecture, with a neat diagram. (08 Marks)Define Data model. Briefly explain Object based and Record based data models. (08 Marks)What are the functions of Database administrator (DBA). (04 Marks)

Define the following terms, with an example for each :

i) Mapping cardinalities ii) Strong entity iii) Degree of a relation iv) Ternaryrelationship v) Foreign key. (10 Marks)Design E * R diagram for keeping track of information about COMPANY database takinginto account at least four entities. (10 Marks)

Explain Binary relational algebra operations, with example.Consider the following relations and write relational algebra expressionsSUPPLIER (S-id, S-name, S - address)PARTS (P-id, P - name, colour)CATALOG (S-id, P-id, cost)i) Retrieve the name of all the suppliers who supply yellow parts.ii) Retrieve the name of the suppliers. who supply both Blue and Blackiii) Retrieve the name of the suppliers who supply all parts.

5a.b.

C.

a. With respect to SQL, explain with example : i) The DROP command ii) The ALTERcommand. (08 Marks)Consider the following tables, write the SQL statements for the following queries:CATALOG (book-id, title, au-id, p-id, Catg-id)AUTHOR (au-id, name, city, country)PUBLISHER (p-id, name, city, country)CATEGORY ( cat-id. descript ion)MEMBER (m-id, name, address, city, state)ORDER - SUMMARY (O-no, m-id, o-date, amount)ORDER - DETAILS (O-no, book-id, quantity)i) Display details of all the members who have placed an order for the book 'CODING'.ii) Display the name of all the books for which an order has been placed.iii) Display the name of all the authors who have more than 2 books in catalog. (12 Marks)

PART _ B

With example, explain aggregate functions in SQL. (10 Marks)Explain INSERT, DELETE and UPDATE statements in SQL with example. (06 Marks)What is a VIEW? What are the advantages of view? (04 Marks)

ourt/,.V, )/5 5; 1,,1r;:r.l--il- -1+2 Mfrks)

For More Question Papers Visit - www.pediawikiblog.com

For More Question Papers Visit - www.pediawikiblog.com

www.pediawikiblog.com

Page 2: Database Management Systems Jan 2014

06css4

6 a. Explain Informal design guidelines for relation schemas. (0E Marks)b. What is normalization? Explain the First, the Second and the Third normal forms, with

example. ,r, *u*,

7 a. Explain Multivalued dependencies and Fourth Normal form. (tO Marxs)b. Explain Join dependencies and Fifth Normal form. (10 Marks)

8 a. p,xplain the ACID properties of transaction. (08 Marks)b. S,xplain: ,;:,,,, ,,:

i) erash recwery ii) Serializability iii) Deadlock. .,"' , ,,. (12 Marks)

'.1,, , ,,,."'i" ,

For More Question Papers Visit - www.pediawikiblog.com

For More Question Papers Visit - www.pediawikiblog.com

www.pediawikiblog.com