0% found this document useful (0 votes)
35 views17 pages

DBMS Que Paper 1

Nothing to say more

Uploaded by

ashish gupta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
35 views17 pages

DBMS Que Paper 1

Nothing to say more

Uploaded by

ashish gupta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 17
3 \Corret omet s | Preblen Meaty X Sone the competion ofthe transactions 71 ara ce what will be the value of X. Is this the correct value, MOL specify the problem, @) (¢) Map the following ER diagram to their irre fi Felaonal tables, Yt | tenes @ the following operations : 2 47 y — 4 2210 5 , give role names in a recursi a © Courses, inctading sumer, vite, reds, syllabus, ‘nd prerequisites; slational table T Gi) Course offerings, including course number, year, et on 6) Ssmestes, section number, instrictora, Almings, and = classroom; G2) Students, including stadent-i, name, and Program; (Instructors, including identification number, name, department, and title Design an ER schema for this application Specify key attribute of each entity t 'ype and structural constraints on ‘cach relationship type, (2) Consider the following relations @ (414252) ( Gustomert, Custoner_Nane, City, (Prod, Prod Nane, Prod_Detaiis) Product) () Write a command to insert a new attribute Price in PRODUCT relation, I Write a command to delete rows from UCT table for Prod Name = ‘P2", | P.T.O, 6 oye j the Ist of customers who have with Prod Name as ‘P3" purchased product and “PSV B, C, De ROA, (b) Two sets of FDs for a relation ey ) are given as follows: a Fe {A3B, ABC, DAC DFE} an G={ABC, DAE) -and G equivalent. al oe 2210 4 7 Give an instance of the STUDENT table and in the context of that instance iNlustrate the following concepts = (i) updation anomaly ¢/ Gi) ins ion anomaly “VV (i) deletion anomaly (0) For the given binary relationship, suggest the cardinality ratio of the relationship based on the general context of entity types and state the context clearly : (4) Entity Entity2 i oak | College {1 Principal \/>~ student Ni | course \~7, , a BS courags1'/ 1) sex 54 en ‘ Book Min Author \ a 5. Consider the given relations : e = Salary Sapa Tocation PT.O0 (2210 8 Write following queries_in relational algebra for the See relations given above = (2x5) Find Primary key of the above relation, ‘Apply normalization to convert it into 3NF @ Display name of all the workers along with their stating the reasons behind each decompositio: ” at sees a ee jer an ordered file with number of records /7 See stored on a disk with block size B = 0) i) Count number of workers wor in Bhance: ‘and record size = 100 byies. peo a | __ Gi) Find the blocking factor for the file. \ | | (i) Show number of workers working in each P i) The number of blocks needed for the file and \ department along with department name. [ (Number of block accesses needed by a binary search on this data file. | ‘workers who have joined ee of ~~ (nd avereg alc of sch dpa} eee! (iv) How many block accesses would be required if you create a primary index on a key field of size 9 bytes and size of block pointer 6 bytes, > (414142) Suppose these scarch key values the given order in a B+ tree of order tree at each step. © schema given below :~ (4) Book_Authors (Book Id, AuthorName) Depict the referential anleeay cons diagrammatically using schema di Database Management Systems se(H) Computer Se. Q OBZ E F : ; Maximum Marks : wy Default value of T3 is 6 Value of 74 Should be taken rom the values: (Male, Female) TS is a foreign key coming from snother table S a Of the database s ® Pe tea atver wis ew A melieiz ulvfw i]al7 2s[alo as[ols alate r 0 35) 4/6 wglel7 #2 cS. - ‘The attributes X, Y, Z are domain compatible with the ga) auributes U, V, W respectively. Show the results of the following operations = x 1 | @_Aus \ ats - : . 4 [email protected] BL \ ) Tha pw Cayay A * 8). 2 = (Whar is data, ee Illustrate the oars i= Of logicat independence and 4 independence ne ae M22. PEO. ita is ET mere, = 0032 6% This question paper contains 6 printed pages. Your Roll No. ... | Si. No. of Ques. Paper : 2798 GC-4 f Unique Paper Code + 32341403 Name of Paper : Database Management Systems Name of Course + B.Sc. (H) Computer Se. Semester 2IV | Duration +3 hours Maximum Marks | 3:75 * (Write your Roll No. on the top immediately $ on receipt of this question paper.) Question 1 is compulsory. Attempt any four questions out of the remaining questions. Parts of a question must be answered together. 1. (a) Consider a data file STUDENT (Sid, Sn Sname, CourseNo, Dob, Address). ea the primary tidex (on Sid) and the secondary it (on CourseNo) on the above file > diagrammatically. Which index will take more space and why? 5 (b) Choose suitable attributes for various ieee and convert the following ER diagram to relational tables.> : / tS estas “ete Visalia \% al -at yet Bi gthisea al sd.32 Prdosdnt la See Fe to De oration RA. ae na “follows: s F={A>B,A+C,C>A} ) G=A+B,B AC ASGC>A) eee sq ) Differentiate between Alter table and Update table ee many teams, ( : cach team has a name, a city. a coach, a captain, and a ‘set of players, * each player belongs to only one team, ‘ach player has a ame, » position (such as left wing or goalie), a skill level, and a set of injury records, (i) For each order display the total Gen fa placed in that order. ~ (ii) Give the details of all those customers who: hi and who bought item with item code re the details of the cheapest item © Consider the following, relations: Here, Eno Ee Pamay Ke and Duo isa Foreign Key in EMPLOYEE relation.) ‘ For each of the following Be Siihne, indicate whether it results in constraint violation and if so, why? (Insert <5, ‘Pooja’, 10> in Employee | (ii) Insert <5, ‘Reeta’, 7> in Employee | yea iii) Delete <7, ‘XX’, ‘Delhi’ > from Department \ a, iv <10, ‘AA’, ‘Delhi’ > in “G Insert si » ‘Delhi’ > in Department 4, he (a) Illustrate eactOfithe following concepts with the help of an e: le: 1 @ T agd disjoint Bese eee tiene Zationy Gi) Recursive Relationship ‘ (iii) Weak Entity ae 7 442 (b) LetF = {A 3B, AC, C- A} for a given relational schema R. Find (BC)* and (C)*. ABC Aa ce AS

You might also like