6
Assignment no.01 1. Explain Advantages of a DBMS over file processing system. 2. What do you mean by data model? Explain the various types of data models. 3. Explain the difference between a weak and strong entity set with an example. 4. Construct E-R diagram for registrar office of university which stores the data about: i.Student(sid,name,program) ii. Courseoffering(time,secno,room,year,semester) iii. Instructor (iid,name,dept,title) iv. Course(syllabus,credits,courseno,title) Each courses offering provides the grades to the student who are enrolled with that course. Give the appropriate mapping constraints. 5. With neat sketch discuss the overall structure of DBMS. 6. What are attributes? What are different types of attributes you have studied? Explain each with suitable example. 7. Explain types of database Users.

Assignments 150507052746-lva1-app6891

Embed Size (px)

Citation preview

Page 1: Assignments 150507052746-lva1-app6891

Assignment no.01

1. Explain Advantages of a DBMS over file processing system.

2. What do you mean by data model? Explain the various types of data models.

3. Explain the difference between a weak and strong entity set with an example.

4. Construct E-R diagram for registrar office of university which stores the data

about:

i.Student(sid,name,program)

ii. Courseoffering(time,secno,room,year,semester)

iii. Instructor (iid,name,dept,title)

iv. Course(syllabus,credits,courseno,title)

Each courses offering provides the grades to the student who are enrolled with

that course. Give the appropriate mapping constraints.

5. With neat sketch discuss the overall structure of DBMS.

6. What are attributes? What are different types of attributes you have studied?

Explain each with suitable example.

7. Explain types of database Users.

8. What are the functions of DBA? Explain in detail.

9. What is data abstraction and data independence? Explain their types.

10. Draw scheme for university databases.

Page 2: Assignments 150507052746-lva1-app6891

Assignment no.02

1. What is join? explain the different types of join.

2. Explain the various types of data models used in DBMS.

3. Explain the fundamental operation in relational algebra.

4. What is an attribute? What are the various types of attribute.

5. Consider the following relation:

Emp(ename,company_name,salary)

Write SQL Queries:

i.Find the total salary of each company.

ii. Find the company name whose salary is less than lowest average salary.

iii. Find the employee name whose salary is higer than highest average salary

of TCS’s.

6. Consider the following structure for employee.

Emp(empno,ename,job,mgr,joindate,sal,comm,deptno)

Write SQL Queries for the following:

i.Change the average salaries for each dept.

ii. Change the name of emp ‘AMAN’ to ‘ABHIJEET’.

iii. Display emp details whose name start with ‘A’.

iv. Display the list of emp excluding job title as ‘Salesman’.

v. Dispaly annual salary of all emp.

vi. Display name and salary for all emp. Whose sal is not in the range of

Page 3: Assignments 150507052746-lva1-app6891

Rs.5000 and 10000.

vii. Delete all tuples in the emp relation for emp of dept_no=’200’.

7. Describe different clause in SQL with example.

8. What are aggregate functions in SQL? Explain it.

9. Describe string function and numeric function with example.

10. Explain ‘Group by’ and ‘having clause’ in SQL with example.

Page 4: Assignments 150507052746-lva1-app6891

Assignment no.03

Submission on: 23/03/2015

1. Explain Functional dependencies with an example.

2. Explain 1NF,2NF and3NF in detail.

3. Write short note on:

i. Nested Subqueries

ii. Multivalued dependency

iii. Join dependency

iv. Trigger

v. View

vi. Transaction

4. Explain states of transaction with suitable diagram also explain ACID properties.

5. Explain serializability and shadow paging with example.

6. Explain Time stamp protocols:

i.Time stamp ordering

ii.Validation based protocol

7. Inference rules based functional dependency questions.

i.Let set of FD’s are given

F={A->B,C->X,BX->Z}

prove or disprove that ac->Z.

ii.Let F={A->B,C->D,C C B}

prove or disprove that A->C

iii.Let F={A->B,BC->D}

prove or disprove the following FD’s

a.AC->D b. B->D c. AD->B

iv.Let F={XY->W,Y->Z,WZ->P,WP->QR,Q->X}

show that XY->P.

8. Explain the following terms:

i.Lossy join

ii.Lossless Join Decomposition

iii.Lock based protocols

Page 5: Assignments 150507052746-lva1-app6891

9. Consider the following relation schemes:

R=(A,B,C,) and S=(D,E,F)

Let realtion r(R) ,s(S) he given .Give an expression in SQL that is equivalent to each

of following.

i. Π A(r)

ii. σB=17(r)

iii. r×s

iv. πA,F (σC=D(r×s))

10. Explain scedules ,types of schedule and the testing of serializability.