Professional Documents
Culture Documents
DBMS
DBMS
1. Define RDBMS.
The RDBMS (Relational Database Management System) is a software that handles/manages
relational databases.
A relational database is a collective set of multiple data sets organized by tables, records and
columns. Relational databases establish a well-defined relationship between database tables.
2. Write short notes on the following : (a) Privacy (b) Data Consistency
Privacy: The privacy rule in a database states that only the authorized users can access a
database according to its privacy constraints. To secure data levels are set in the database and
a user can only view the data which is allowed to be seen.
3. Identify any 2 column names/attributes and their data types from a given table :
PLAYER
Ans:
Columns Data Type
PID CHAR / VARCHAR / TEXT
PName CHAR / VARCHAR / TEXT
Gender CHAR / VARCHAR / TEXT
INTEGER / INT / TINYINT /
Runs SMALLINT / MEDIUMINT
/BIGINT / NUMBER
DOB DATE / DATETIME
4. Define the following:
a. Database Management System (DBMS)
A database management system is a software package with computer programs that
controls the creation, maintenance and use of a database.
b. Primary key
A primary key is a unique value that identifies a row in a table.
Primary Key = Unique + Not Null
d. Referential integrity
Referential integrity is a system of rules that a DBMS uses to ensure that relationships
between records in related tables are valid.
Numeric datatypes are: TinyInt, SmallInt, Integer, BigInt, Decimal, Real, Float, Double and
Boolean.
Alphanumeric Datatypes are: Char(fix), Varchar, Varchar_ignorecase and
Longvarchar(Memo)
6. Your friend owns a chemist shop, he needs to keep records of the medicines with
their id’s, date of purchase, expiry date, price, etc. in a database program. But he
does not have any knowledge about the database. Explain to him the following to
get a better understanding of the DBMS concepts.
2. Name any two database programs which can be used to create a table and store
the data as per the requirement.
Yes, we can make more than one column as a primary key in a table and it is known as
Composite Primary Key.
7. Structure of a table "Orders" is given below. Suggest suitable data type of each
column.
Alphanumeric Types: Various data types are char, varchar, long varchar etc. They are used
to store the text.
Binary Types: Binary data types are used for storing data in binary formats. Binary data types
in a database can be using for storing photos, music files, etc.
DATE TIME: Date time data types are used for describing date and time values for the field
used in the table of a database. Date time data types in a database can be used for storing
information such as date of birth, date of admission, date of product sale, etc.