Brief Answer Questions:
[10×1=10]How the Redundancy problem in File Processing is solved by database processing ?
List out the responsibility of DBA.
What is the purpose of storage manager?
Give example of Binary and Ternary relationship.
Explain the two types of participation constraint.
What is meant by lossless-join decomposition?
Define deletion Anomaly.
what is embedded SQL?
What are two pitfalls (problem) of lock-based protocol ?
Define Atomicity with example.
Exercise Problems:
[5×4=20]Draw ER diagram on the basis of following scenario assuming your own attributes.
This system store various information about driver, bus tickets and customer. Driver drives bus, customer travel from one place to another by bus. Driver check the ticket of each customer for validity. Each customer must have ticket to travel by the bus.
Write the DDL statement to create the following table:
Table Name: Football Team
| Field Name | Data - Type | Constraints |
| Team ID | Alphanumeric | Primary Key |
| Team Name | Character | Not more than 20 character |
| Rank | Integer | No negative and NULL |
| Goal Score | Integer | No negative and NULL |
| GoalConsided | Integer | NO NEGATIVE NULL |
| No_of_players | Integer | Not less than 11 and more than 25 |
Consider the following relation database.
Author (AID, A_Name, Age, Address, country)
Publishes (AID, BID, publisheddate)
Book (BID, B_name, page, price)
a. Find the Name of Author who is Not from 'Nepal'.
b. Find the number of books written by each author.
c. Find the name of Author who has published expensive book.
d. Insert the detail of new Author.
Consider the relation scheme R={E,F,G,H,I,J,K,L,M,N} and the set of functional dependencies {{E,F}→{G},{F}→{I,J},{E,H}→{K,L},K→{M},L→{N}} ON R. what is the candidate key for R?
Normalize the following relation up to BCNF.
| E-ID | E-name | Contact No | Post | Salary |
| E01 | Sushil | 98405,21325 | Manager | 40000 |
| E02 | Basanta | 9846 | Engineer | 45000 |
| E03 | Gopal | 98510,2456 | Manager | 40000 |
| E04 | Rita | 98302 | Accountant | 30000 |
| E05 | Sita | 986045,44534 | Engineer | 45000 |
Comprehensive Answer Questions:
[2×5=10]Explain concurrency control. suppose you have three account A=5500, B=4500 and C=2000 and transaction T1, T2 and T3. in T1 Rs.500 transfer from A to B. in of all account. manage the transaction using Two phase locking protocol for concurrency control.
Explain various database Application Architecture with a suitable example.