0% found this document useful (0 votes)
1 views

dbms

The document is a question bank focused on various topics related to Database Management Systems (DBMS), including architecture, commands, data models, and ER diagrams. It also includes specific relational algebra queries based on given schemas for retrieving sailor names based on ratings and boat reservations. Additionally, it covers cardinality ratios, relational algebra types, and the history of DBMS.

Uploaded by

dvarshitha04
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views

dbms

The document is a question bank focused on various topics related to Database Management Systems (DBMS), including architecture, commands, data models, and ER diagrams. It also includes specific relational algebra queries based on given schemas for retrieving sailor names based on ratings and boat reservations. Additionally, it covers cardinality ratios, relational algebra types, and the history of DBMS.

Uploaded by

dvarshitha04
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

FDBMS Question Bank

1. Database system Architecture.


2. DML and DDL Commands with syntax.
3. Applications and Advantages of DBMS.
4. Different types of Data models.
5. Design the ER Diagrams (examples: Banking system, Universities, Hospitals).
6. Difference between file processing system with database management systems.
7. Describe in detail about Entity-Relationship design issues.
8. Distinguish between Tuple Relational Calculus and Domain Relational Calculus with
suitable examples.
9. Consider the following schemas
Sailors ( sid: integer, sname: string, rating: integer, age: integer)
Reserves ( sid: integer, bid: integer, day: date)
Boats ( bid: integer, bname: string, color: string)
Write the following queries in Relational algebra.
Find the names of sailors whose rating is >7
Find the names of sailors who have reserved boat 103.
Find the names of sailors who have reserved a red boat.

Ans: The relational algebra queries for the given tasks. We will use the following relations:

 Sailors(sid, sname, rating, age)


 Reserves(sid, bid, day)
 Boats(bid, bname, color)

i) Find the names of sailors whose rating is > 7.

To find the sailors whose rating is greater than 7, we need to select the rows from the Sailors
table where the rating is greater than 7, and then project only the sname (name) column.

Relational Algebra:

π_sname(σ_rating > 7(Sailors))

Explanation:
 σ_rating > 7(Sailors): Selects rows from the Sailors table where the rating is greater
than 7.
 π_sname(...): Projects only the sname column from the result.

ii) Find the names of sailors who have reserved boat 103.

To find sailors who have reserved boat 103, we need to join the Sailors and Reserves tables
on the sid attribute, select only those rows where bid = 103, and then project the sname
column.

Relational Algebra:

π_sname(σ_bid = 103(Sailors ⨝ Reserves))

Explanation:

 Sailors ⨝ Reserves: Performs a natural join between the Sailors and Reserves tables
on the sid attribute.
 σ_bid = 103(...): Selects rows where the bid is equal to 103.
 π_sname(...): Projects the sname column (sailor names) from the result.

iii) Find the names of sailors who have reserved a red boat.

To find sailors who have reserved a red boat, we need to:

1. Join the Reserves table with the Boats table on the bid attribute.
2. Select the rows where the color is 'red'.
3. Join the result with the Sailors table on the sid attribute.
4. Project the sname column.

Relational Algebra:

π_sname(σ_color = 'red'((Sailors ⨝ Reserves) ⨝ Boats))

Explanation:

 Sailors ⨝ Reserves: Performs a natural join between the Sailors and Reserves tables
on the sid attribute.
 (Sailors ⨝ Reserves) ⨝ Boats: Joins the result with the Boats table on the bid
attribute.
 σ_color = 'red'(...): Selects rows where the color of the boat is 'red'.
 π_sname(...): Projects the sname column (sailor names) from the result.

These relational algebra expressions retrieve the requested information based on the schemas
provided.

10. Describe the Cardinality ratio and its types.


11. Briefly describe about relational algebra with examples and its types.
12. Describe about the history of Database Management systems.

You might also like