The document provides an introduction to Database Management Systems (DBMS), including activities related to data types, SQL commands, and the structure of databases. It outlines the advantages of using a DBMS, such as data redundancy control, data sharing, security, and integrity enforcement. Additionally, it explains key concepts like primary keys and data definition language (DDL).
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0 ratings0% found this document useful (0 votes)
2 views6 pages
Introduction To DBMS
The document provides an introduction to Database Management Systems (DBMS), including activities related to data types, SQL commands, and the structure of databases. It outlines the advantages of using a DBMS, such as data redundancy control, data sharing, security, and integrity enforcement. Additionally, it explains key concepts like primary keys and data definition language (DDL).
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 6
Introduction
to
TPS Information Technolo .
0.1 Compiete the following activity.
1. Tick whichever box is not valid,
Graphic
Date
Data type
Number
Text
Ans.: Graphics
2. Student wants to create a field pincode in a table, which data type he will choose?
Ans. : INT
3. Tick the appropriate box.
Ans. : Uniquely identifies a record
4. Tick the appropriate circle.
is also called foreign key
Uniquely identifies a record
None of
th
Ans. : One or many tables
@ scanned with OKEN ScannerWS tnformation Technology
« “OM. W Sel)
Observe the feta 1 stibaao
s MNOS Of 4 0
Bus reservation, Write suteat (ese Blven bel
suttab)
pe below in ‘Column A‘ related to
respective ied ta Core "types for each field in front of the
Column A | Column |
. (Feld Name) (Daa type)
Mobile Number |
har, int, char, int
Write the use of following SOL ‘command,
Insert Insert data into table
Update Updates data in a table
Create a table for the information given below by choosing appropriate data
types. Specify proper primary key for the table (1) Movie (2) Actor
1. Movie (Registration_no, movie_name, Release_Date)
2. Actor (Actor_id, Actor_name, birth_date)
Create table Movie
(Registration_no smallint Primary key,
movie_name varchar (20),
Release_Date Date);
Create table Actor
(Actor_id smallint Primary key,
Actor_name varchar (20),
Birth-data Date);
@ scanned with OKEN Scannerroductis
os Introduction to Days
(Comm. & Sci.)
stationary. Write SQL commands for following
‘PS Information Technology
} Q.5 Consider the following table
statement.
Table : Stationary
s_ID S_Name C_Name | Price Quantity
i 001 | NoteBook ABC 20 50
002 | Pencil box XYZ 10 80
003 | A4Pagesrim| PQR 600 2
Write SQL command to create above Table.
Create table stationary
(S_ID smallint Primary key,
S_name varchar (20),
C_name varchar (20),
Price smallint,
Quantity smallint);
Write SQL command to insert above mentioned record in table.
insert into stationary values
(001, ‘Notebook’ ‘ABC’, 20, 50),
(002, ‘Pencil Box’ ‘XYZ’, 10, 80),
(003, “A4 Pages Rim’ ‘PQR’, 600, 2);
3. To delete above Table.
Ans. ; Drop table stationary ;
Q.6 Answer the following questions :
1. What is database ?
Ans, : A DBMS is a collection of programs (computer based
to create and maintain a database, It is used to define, system) that enables the us
DBMS make sure that the database continues to function, properi
rly.
@ scanned with OKEN Scannerrsifomation Technology (Comm.é si) ag
. Sitroduction to DBMS
They include - Integrity system - se,
gecovery contra s¥stenn Same DEMS enable us ro eg encuTTeneY control system -
le us to define “ _
4 views" of the d: i
js baw the — SABEATE to the user. ‘This enables us to show eee
i fo ent o : ly the relevant |
jnformation t fer t types Of users and it increases security, as certain users will not bi
able to see data which they are not meant to see, i will not be
7 Whatare the advantages of a DBMS?
Ans. *
Advantages of DBMS :
1. Redundancy is controlled : In File Processing System, duplicate data is created in
many places because all the programs have their own files. This creates data
redundancy which in turns wastes labor and space. In Database Management
System, all the files are integrated in a single database. The whole data is stored
only once at a single place so there is no chance of duplicate data.
Sharing of Data : In a database, the users of the database can share the data among
themselves. 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.
3. Data Security ; Data Security is vital concept in a database. Only authorized users
should be allowed to access the database and their identity should be authenticated
using a username’ and password. Unauthorized users should not be allowed to
access the database under any circumstances as it violates the integrity constraints.
4. Enforces integrity constrairits : Constraints are used to store accurate data because
there are many users who feed data in database. Data stored in database should
always be correct and accurate. DBMS provides the capability to enforce these
constraints on database.
5. Provides backup and recovery of data : Data loss is a very big problem for all the
organizations. In traditional file processing system, a user needs to backup the
database after a regular interval of time that wastes lots of time and resources. If the
volume of data is large then this process may take a very long time.
5. What do you understand by Data Model ?
>
2
al design and structure of a database and defines
dated in a database management system. While
.d database model.
hy A Database model defines the logic
7 data will be stored, accessed and up’
Relational Model is the most widely use
Relational Model :
Itis the most Jar data model in DB
popular
me Which is widely used for data processing.
“cess data with storage efficiency:
MS, Relational model is the primary data
This model has all properties required to
@ scanned with OKEN Scanner‘TPS Information Technology (Comm. & Sci.) 26 Introduction to Day,
4. Whatis a primary key ?
‘Ans. : Primary Key : A column in
is called primary key.
5. What is DDL (Data Definition Language)
‘Ans. : Data Definition Language(DDL) : This language 1s used by the designers ang
programmers of the database to indicate the content and the structure of the database. It jg
used to indicate the physical structure of the database ie. field names, their types ete, also
the record relationships. E.g. CREATE, ALTER, and DROP statements.
G7 Ina company the data is stored in a table under the following fields Employes
umber Last name, Date of birth, Address. Which data type will you use for
the above field.
the table that uniquely identifies each row in that tabje
Datatype??? m
Employee last
name name
Company
table
2
@ scanned with OKEN Scanner| zpsteformation Technology (Comm, & Se
Complete the followirg Introduction to DBMS
08
To remove access righ
ae phi
privileges from the databoee
Extracts data from a table
ans.:Revoke, Select
Fill in the Blanks
ie Oya rele
Q1 The ______are raw facts.
Ans.: Data
Q.2 The is collection of interrelated data.
Ans.: Database
Q.3 The is a processed data.
Ans.: Information
Q4 The helps in decision making.
Ans.: Information
Q.5 Without information cannot be processed.
Ans.: Data
Introd n to Database Managemen em (DBMS)
managing database.
Q6
is a software for creating and
Ans.: DBMS (Database Management System)
27 4 isa collection of information.
Ans.:
»: Database
f information organized in such a way that a computer
inl
28 Aisa collection 0
A program can select required data.
Fe enteell i dad with systematic way to create,
29° “The provides programmers and users
retrieve, update and manage data. on
Ans.: DBMS (Database Management Sy®
@ scanned with OKEN Scanner