RDBMS WORKSHEET

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

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

7 What is referential Integrity? How it is implemented in any table?


8 Expand the term: RDBMS
9 RDBMS is a collection of:
a. Fields
b. Tables
c. Columns
d. Keys
10 The term attribute refers to of a table:
a. Record
b. Key
c. Tuple
d. Column
11 “Address” field of a table cannot be a part of Primary key as it is likely to?
a. Dependent
b. Changed
c. Too Long
d. Not Changed
12 In RDBMS referential integrity can be specified with the help of
a. Primary Key
b. Secondary Key
c. Foreign Key
d. None of these
13 From the following Tables (EMP) AND (JOB) answer the question (i) and (ii)
TABLE: EMP
EMPNO ENAME JOB SALARY DEPTNO
E001 PETER ADMIN 4500 10
E002 SCOTT SALESMAN 3500 20
E003 ALBERT CLERK 2800 10
E004 RUSSEL CLERK 2900 40
TABLE:JOB
DEPTNO DNAME DLOCATION DHEAD
10 PETER ADMIN 4500
20 SCOTT SALESMAN 3500
30 ALBERT CLERK 2800
40 RUSSEL CLERK 2900
(i) Identify Primary Key from both the tables
(ii) Identify the foreign key column in the table EMP
(iii) Can we delete the record of PETER from table JOB?
(iv) If not give reason

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?

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy