FYJC Exercise Chap. 2 Introduction To DBMS
FYJC Exercise Chap. 2 Introduction To DBMS
College
FYJC-IT
Introduction to DBMS
Chapter wise Exercise – Answer Key
2. The student wants to create a field Pincode in a table, which data type he will
choose?
Int
1|Page
Mother Teresa Secondary Convent School & Jr. College
FYJC-IT
Varchar
int
char
int
1. The
2|Page
Mother Teresa Secondary Convent School & Jr. College
FYJC-IT
Q.4 Create a table for the information given below by choosing appropriate
data types. Specify proper primary key for the table (1) Movie (2) Actor.
Q.5 Consider the following table Stationary. Write SQL commands for the
following statements.
Table: Stationary
3|Page
Mother Teresa Secondary Convent School & Jr. College
FYJC-IT
1. What is Database ?
Ans.:
Database
A database is collection of interrelated data.
Database helps in efficient retrieval, inserting and deleting of data.
4|Page
Mother Teresa Secondary Convent School & Jr. College
FYJC-IT
B. Sharing of Data:
i) In a database, the users of the database can share the data among
themselves.
ii) There are various levels of authorization to access the data. And
consequently, the data can only be shared based on the correct
authorization protocols being followed.
C. Data Integrity:
i) Data integrity means that the data is accurate and consistent in the
database.
ii) Most of database are visible to multiple users so it is necessary to
ensure that the data is correct and consistent in all the database and
for all the users.
D. Data Security:
E. Privacy:
i) The privacy rule is a database means only the authorized user can
access a database according to its privacy constraints.
Ans.:
Primary Key
A group of one or more columns used to uniquely identify each row of a
relation is called its Primary Key.
a) DDL statements or commands are used to define and modify the database
structure of your tables or schema.
b) When you execute a DDL statement, it takes effect immediately.
Q.7 In a company the data is stored in a table under the following fields
Employee number, Last name, Date of birth, Address. Which data type will you
use for the above field?
7|Page
Mother Teresa Secondary Convent School & Jr. College
FYJC-IT
Revoke
Select
8|Page