Short Answer Type Questions-I
Question 1:
Observe the following PARTICIPANTS and EVENTS table cerefully and write the name of the RDBMS operation which will be used to produce the output as shown in RESULT? Also, find the Degree and Cardinality of the RESULT.


Answer:
Cartesian Product
Degree — 4
Cardinality = 6
Question 2:
Define degree and cardinality. Also, Based upon given table write degree and cardinality.
Answer:
Degree is the number of attributes or columns present in a table.
Cardinality is the number of tuples or rows present in a table.
Patients Degree = 4
Cardinality = 5
Question 3:
Observe the following table and answer the parts (i) and (ii):

- In the above table, can we have Qty as primary key.
- What is the cardinality and degree of the above table?
Answer:
- We cannot use Qty as primary key because there is a duplication of values and primary key value cannot be duplicate.
- Degree =4
Cardinality = 5
Question 4:
Explain the concept of union between two tables, with the help of appropriate example.
Answer:
The union operation denoted by ‘U’ combines two or more relations. The resultant of union operation contain tuples that are in either of the table or in both tables.
Question 5:
Observe the following STUDENTS and EVENTS tables carefully and write the name of the RDBMS operation which will be used to produce the output as shown in LIST table? Also, find the degree and cardinality of the table.
Answer:
Cartesian Product
Degree = 4
Cardinality = 6
Question 6:
Observe the following MEMBER and ACTIVITY tables carefully and write the name of the RDBMS operation, which will be used to produce the output as shown in REPORT? Also, find the Degree and Cardinality of the REPORT.
Answer:
Join operation or MEMBER U ACTIVITY
Degree of Report = No of columns
(No of Attributes) = 3
Candinality Report = No of Rows
(No of tuples) = 6
Question 7:
Observe the table ‘Club’ given below:
- What is the cardinality and degree of the given table?
- If a new column Contact_No has been added and three more members have joined the club then
Answer:
- Cardinality = 4 Degree = 5
- Cardinality = 7
- Degree = 6
Question 8:
What do you understand by Union & Cartesian product in the relational algebra?
Answer:
Union of R ans S :The Union of two relations is a relation that includes all the tuples that are either in R or in S or in both R and S. Duplicate tuples are eliminated.
The Union is an operator which works on two how sets. It combines the tuples of one relation with all the tuples of the other relation such that there is no duplication.
Cartesian Product: The cartesian product is an operator which works on two sets. It combines the tuples of one relation with all the tuples of the other relation.
Example: Cartesian Product
Question 9:
Differentiate between the Alternate key of a table with the help of an example.
Answer:
Primary Key: A primary key is a value that can be used to identify a unique row in a table .
Alternate Key: An alternate key is any candidate key which is not selected to be the primary key
Example:

So, (Bank Account Number, Aadhaar Number) are candidate keys for the table.
Aadhaar Number — Primary key
Bank Account Number — Alternate key
Question 10:
Explain the concept of candidate key with the help of an appropriate example.
Answer:
Candidate key is a column or set of columns that can help in identifying records uniquely.
Example, consider a Table STUDENT.
Here, AdmnNo & Roll No define Table uniquely.
Hence, they are candiadate keys
Question 11:
What do you understand by degree & cardinality of a Table ?
Answer:
Degree refers to the number of columns in a table.
Cardinality refers to the number of rows.
No comments:
Post a Comment