0% found this document useful (0 votes)
585 views6 pages

CH 6 - Introduction To DBMS and Its Concepts For Board Exam PDF

This document contains practice questions and objective type questions related to introduction to DBMS and its concepts. It includes questions about the differences between DBMS and RDBMS, database software names, domains, foreign keys, primary keys, candidate keys, degrees and cardinalities in the relational data model, SQL queries, and more.

Uploaded by

Thanusri. S
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
585 views6 pages

CH 6 - Introduction To DBMS and Its Concepts For Board Exam PDF

This document contains practice questions and objective type questions related to introduction to DBMS and its concepts. It includes questions about the differences between DBMS and RDBMS, database software names, domains, foreign keys, primary keys, candidate keys, degrees and cardinalities in the relational data model, SQL queries, and more.

Uploaded by

Thanusri. S
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

CHAPTER 6 – INTRODUCTION TO DBMS AND ITS CONCEPTS

PRACTICE QUESTIONS

1. Define DBMS and How it is different from RDBMS.


2. List out any two database software names.
3. What is Domain? Give an example.
4. Explain the use of Foreign Key‘ in a Relational Database.
Give an example tosupport your answer.
5. Explain two points of difference between Primary key and
Alternate key in a Relational Data Model.
6. Differentiate between a Candidate Key and Alternate Key.
7. Define candidate key, Primary key and Foreign Key.
8. Differentiate between Candidate Key and Primary Key in
the context Relational Database Mode
9. Give difference between primary key and foreign key
10. Differentiate between Degree and Cardinality in the context
of Relational Data Model.
OBJECTIVE TYPE QUESTIONS

1. RDBMS stands for


(a) Relational Database Management System
(b) Rotational Database Management System
(c) Reliable Database Management System
(d) None of these
2. Each row of data in a relation(table) is called
(a) attribute (b) tuple (c) domain (d) None of these
3. A table has initially 5 columns and 8 rows. Consider the
following sequence of operationsperformed on the table –
i. 8 rows are addedii. 2 columns are added
iii. 3 rows are deletediv. 1 column is added
What will be the cardinality and degree of the table at the
end of above operations?
(a) 13,8 (b) 8, 13 (c) 14,5 (d) 5,8
4. A database can have only one table(True/False)
5. Which one of the following refers to the copies of the same
data (or) information occupying the memory space at
multiple places.
(a) Data Repository (b)Data Inconsistency
(c)Data Mining (d)Data Redundancy
6. A ………………is a virtual table that does not really exist
in its own right but is instead derived from one or more
underlying base table(s) in DBMS
(a)SQL (b) map (c) view (d) query
7. A table has 5 rows and 3 columns. A new row is added to
it. What will be its cardinality and degree?
(a)5, 4 (b) 6, 3 (c)6, 4 (d)5, 3
8. The number of attributes in a relation is called the
___________ of the relation
(a) Degree (b) Cardinality
(c) Domain (d) None of these
9. The number of tuples in a relation is called the
___________ of the relation
(a) Degree (b) Cardinality
(c) Domain (d) None of these
10. A candidate key that is not the primary key is called
(a) Composite Key (b) Foreign Key
(c) Alternate Key (d) None of these
11. In relational model, tables are called
(a) Domains (b) Relations
(c) Tuples (d) None of these
12. ___________ can take NULL values in it
(a)Primary Key
(b)Foreign Key
(c)Both Primary Key and Foreign Key
(d)None of these
13. The term _________ is used to refer to a record in a table.
(a) Attribute (b) Tuple (c) Field (d) Instance
14. Which of the following attributes cannot be considered as
a choice for primary key?
(a) Id (b) License Number (c) Dept_Id (d)
Street
15. An attribute in a relation is a foreign key if it is the
___________ key in any other relation.
(a) Candidate (b) Primary (c) Super (d) Sub
16. What is the format used for storing date using date
datatype?
(a) dd-mm-yy (b) dd-mm-yyyy
(c) mm-dd-yyyy (d) yyyy-mm-dd
4 - MARKS
1. Sagar a cloth merchant creates a table CLIENT with a set
of records to maintain the client’sorder volume in Qtr1,
Qtr2, Qtr3 and their total. After creation of the table, he
has entereddata of 7 clients in the table.

Based on the data given above answer the following


questions:
(i) Identify the most appropriate column, which can be
considered as Primary key.
(ii) What is the product of degree and cardinality of the
above table ?
(iii) Write the statements to: Update a record present in the
table with data for Qtr2 – 200 , Qtr3 = 600 , total –
sum of all Qtrs where the Client_ID is C660
(iii) (a) Delete all records where total is between 500 to 900
(b) Add a column RATINGS with data type integer
whose value must lie between 1 to 5.
2.

(i) Write a query to make Item code as primary key in the


above existing table.
(ii) Write the command to remove the column Discount.
(iii) (a) Write the command to display the structure of the
table infants which is Shop database.
(b) Write the degree and cardinality of the table.
(OR) (Option given for part (iii) only)
(iii) (a) Add a new row with the following values in
respective attributes.
Itemcode=106, Item=BathTub,
Datepurchase=2015-10-22, Unitprice=1500
(b) Write the command to display Item, Unitprice in
descending order.
3. Naveen created a table SALES_DONE to maintain the sales
made by his sales department. The table consists of 10
employees records. To record every months sales he is
adding a new column with first three characters of that
month:

Based on the above table answer the following questions:


(i) Identify the candidate key, primary key from the above
table.
(ii) He added two more employee in the month of February
and if a new column is added for each month, at the
end of May month what is the degree and cardinality of
the table.
(iii) Write the SQL statement to do the following:
(a) Insert the following record into the above table.
106,”Venkatesh Gour”,256489,200,300
(b) Change the name of the employee as "Sri Nikethan"
whose emp no is 104.
(OR)
(iii) Write the MYSQL statement for the following
(a) Add a new column Total_sales of type integer with
NOT NULL constraint.
(b) Fill the column Tot_sales by adding values in Jan
and Feb columns.
4.

(a) Identify the attribute best suitable to be declared as a


primary key,
(b) Write the degree and cardinality of the table Collections.
(c) Write SQL command to increment the quantity by 20
wherever quantity is below 50.
(d) Poorvekka wants to remove the entire data from table
Collections. Which command will she use from the
following:
(a) DELETE FROM Collections; (b) DELETE Collections;
(c) DROP DATABASE CB; (d)DELETE * FROM Collections;
5. Consider the below given ITEM table:

Write SQL queries for the following:


(i) Display Kitchen and Living items in descending order of
Price
(ii). Display the average price for each Type.
(iii). (a) Display the Stockdate for recently added item.
(b) Display the Itemname whose name ends with ‘s’.
OR (Option for part iii only)
(iii) (a) Delete the Item having price less than 10000.
(b) Update the price of item having NULL price to 1000.
6. ABC Gym has created a table TRAINER. Observe the table
given below and answer the following questions
accordingly.

a. What is Degree and Cardinality of the above table?


b. Which field should be made as the primary key? Justify
your answer.
c. Write the query to:
i. Insert a record: (107,Bhoomi,Delhi,2001-12-15,90000)
ii. Increase the salary by 1% for the trainers whose
salary is more than 80000 (OR)
i. Delete the record of Richa.
ii. Add new column remarks of VARCHAR type with 50
characters.
7. Mayank creates a table RESULT with a set of records to
maintain the
marks
secured by
students in
sub1, sub2,
sub3 and
their GRADE.
After creation
of the table, he has entered data of 7 students in the table.
Based on the data given above answer the following
questions:
(i) Identify the most appropriate column, which can be
considered as Primary key.
(ii) If two columns are added and 2 rows are deleted from
the table result, what will be the new degree and
cardinality of the above table?
(iii) Write the statements to:
a. Insert the following record into the table
Roll No- 108, Name- Aaditi, sub1- 470, sub2-444,
sub3-475,Grade– I.
b. Increase the sub2 marks of the students by 3%
whose name begins with ‘N’.
OR (Option for part iii only)
(iii) Write the statements to:
a. Delete the record of students securing Grade-IV.
b. Add a column REMARKS in the table with data type
as varchar with 50 characters.
8. Dinesh creates a table COMPANY with a set of 06 records

(a) Identify the most appropriate column, which can be


considered as Primary key.
(b) If 3 columns are added and 2 rows are deleted from the
table result, what will be the new degree and
Cardinality of the above table?
(c) Write the statements to:
(i) delete a record which has C_ID as C24
(ii) Increase the Fee of all by 500.
**********************************************************

You might also like