RDBMS WORKSHEET
RDBMS WORKSHEET
RDBMS WORKSHEET
DATABASE
1 Observe the following table TEACHER and TASK carefully and write the names of the RDBMS
operation out of (i) EQUI JOIN (ii) NATURAL JOIN (iii) SELECTION (iv) CARTESIAN
PRODUCT, which has been used to product the output as shown below. Also find the Degree
and Cardinality of final RESULT.
TABLE: TEACHER
TEACHER_CODE TEACHER_NAME SUBJECT
T001 AMIT BIOLOGY
T002 ANAND HINDI
T003 MOHAN PHYSICS
TABLE: TASK
TASKNAME COMPLETION_DATE
SBSB 30-04-2020
EBSB 31-05-2020
GANGA_QUEST 30-04-2020
FINAL RESULT
TEACHER_CODE TEACHER NAME SUBJECT TASKNAME COMPLETION_DATE
T001 AMIT BIOLOGY SBSB 30-04-2020
T001 AMIT BIOLOGY EBSB 31-05-2020
T001 AMIT BIOLOGY GANGA_QUEST 30-04-2020
T002 ANAND HINDI SBSB 30-04-2020
T002 ANAND HINDI EBSB 31-05-2020
T002 ANAND HINDI GANGA_QUEST 30-04-2020
T003 MOHAN PHYSICS SBSB 30-04-2020
T003 MOHAN PHYSICS EBSB 31-05-2020
T003 MOHAN PHYSICS GANGA_QUEST 30-04-2020
2 Observe the following table and answer the question (i) , (ii) and (iii)
TABLE: VISITOR
VisitiorID VisitorName ContactNumber
V001 ANAND 9898989898
V002 AMIT 9797979797
V003 SHYAM 9696969696
V004 MOHAN 9595959595
(i) Write the name of most appropriate columns which can be considered as Candidate
keys
(ii) Out of selected candidate keys, which one will be the best to choose as Primary
Key?
(iii) What is the degree and cardinality of the table
3 What do you understand by the term Foreign key? How many foreign keys can be added to any
table?
4 What is Primary Key? How many primary key can be added to any table?
5 What are the main restrictions enforces by Primary Key if applied on any column?
6 Write short notes on following relational terms:
a. Tuple
b. Attribute
c. Relation
d. Domain
14 Table T1 contains 10 Rows and 4 Columns; Table T2 contains 20 Rows and 3 Columns. After
performing Cartesian product of T1 and T2, What will be the degree and cardinality of
Resultant output?
15 What is the difference between Primary Key and Candidate Key?
16 What is alternate Key?
17 Give any 2 advantages of using Database?
18 Horizontal subset of table is known as
a. Attribute
b. Doman
c. Tuple
d. Keys
19 For each attribute of a relation, there is a set of permitted values, called the of that attribute.
a. Dictionaries
b. Domain
c. Directory
d. Relation
PRODID QTY RATE AMOUNT
20 1 in a table 10 100 1000
represent relationship among a set of values.
2
a. Column 5 50 250
b.3 Keys 10 20 200
c.4 Row 20 100 2000
d. Entry
21 Tuples of a table can be of order
a. Any
b. Same
c. Sorted
d. Constant
22 Write any 2 characteristics of a Relation
23 Who invented the term “Relational Database”?
a. Blaise Pascal
b. Dr. E. F. Codd.
c. Charles Babbage
d. Tim Berners Lee
24 Column names of any table must be:
a. Must be numeric type
b. Must be unique
c. Must be in sorted order
d. Must not be greater than 40 characters
25 Based on the given table “SALE” answer the question (i) and (ii)
(i) Can we take QTY column of the above table as Primary Key? If no give reason
(ii) Which column is best suitable for applying Primary Key?