You are on page 1of 2

CSE-301(DBMS)

Total marks :20

Q1: Explain the distinction between representation of association and relationship in the network model and hierarchical model? Q2: What are the responsibilities of a DBA? If we assume that the DBA is never interested in running his or her own queries, does the DBA still need to understand query optimization? Why? Q3:E xplain the concept of physical data independence , and its important in database systems. Q4: Consider a database used to record the marks that students get in different exams of different course offerings. a. Construct an E-R diagram that models exams as entities, and uses a ternary relationship, for the above database. b. Construct an alternative E-R diagram that uses only a binary relationship between students and course-offerings. Make sure that only one relationship exists between a particular student and course-offering pair, yet you can represent the marks that a student gets in different exams of a course offering Q4: Consider the following schema: Suppliers(sid: integer, sname: string, address: string) Parts(pid: integer, pname: string, color: string) Catalog(sid: integer, pid: integer, cost: real) The key fields are underlined, and the domain of each field is listed after the field name. Therefore sid is the key for Suppliers, pid is the key for Parts, and sid and pid together form the key for Catalog. The Catalog relation lists the prices charged for parts by Suppliers. Write the following queries in relational algebra and tuple relational calculus. 1.Find the names of suppliers who supply some red part. 2. Find the sids of suppliers who supply some red or green part. 3. Find the sids of suppliers who supply some red part or are at 221 Packer Street. 4. Find the sids of suppliers who supply some red part and some green part. 5. Find the sids of suppliers who supply every part. Q5: We can convert any weak entity set to a strong entity set by simply adding appropriate attributes. Why, then, do we have weak entity sets?
Q6:What are the various design issues in ER diagram? Make the ER diagram of

S(S#,SSNAME,STATUS,CITY) P(P#,PNAME,COLOR,WEIGHT,CITY) J(J#,JNAME,CITY) SPJ(S#,P#,J#,QTY) where S indicates information of suppliers,P parts,J projects,and SPJ indicates the supplied quantity details

Q7: employee (person-name, street, city) works (person-name, company-name, salary) company (company-name, city) manages (person-name, manager-name) Consider the relational database of Figure where the primary keys are underlined.Give an expression in the relational algebra to express each of the following queries: a. Find the names of all employees who work for First Bank Corporation. b. Find the names and cities of residence of all employees who work for First Bank Corporation. c. 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. d. Find the names of all employees in this database who live in the same city as the company for which they work. e. Find the names of all employees who live in the same city and on the same street as do their managers. Q8) Explain the three tier and n-tier architecture for web applications?Which of the following plays an important role in representing information about the real world in a database? Explain briefly. (a)The data definition language (b)The data manipulation language. (c)The buffer manager. (d)The data model

You might also like