Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

ASSIGNMENT:-1

DATABASE MANAGEMENT SYSTEM (CLASS -X)


DATE:30-04-2024

1. Define RDBMS.
The RDBMS (Relational Database Management System) is a software that handles/manages
relational databases.

The RDBMS (Relational Database Management System) is a computerised record keeping


system or a software that enables us to create, store, modify and extract information from a
database.

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.

Data Consistency: Data consistency is ensured in a database because there is no data


redundancy. Data Consistency means there should be multiple mismatching copies of the same
data. All data appears consistently across the database and must be the same for all the users
viewing the database.

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

c. Numeric data type


Numeric data types are numbers stored in database column. The exact numeric data
types are INTEGER, INT, TINYINT, SMALLINT, MEDIUMINT, BIGINT,
NUMBER, DECIMAL, NUMERIC, FLOAT, REAL, DOUBLE.

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.

5. List Numeric and Alphanumeric Datatypes in OpenOffice Base.

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.

1. What is DBMS? Explain in brief.

A database management system is a software package with computer programs that


controls the creation, maintenance, and use of a database. It allows organizations to
conveniently develop databases for various
applications.

2. Name any two database programs which can be used to create a table and store
the data as per the requirement.

Two databases are:


a. Microsoft Access
b. MySQL
c. OpenOffice Base

3. Which field can be set as a Primary Key?

Id field will be suitable for Primary Key.


4. Is it possible to make more than one field as a primary key in your table? (Yes/No).
Justify your answer.

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.

8. Explain any four data types of DBMS.

Ans.: Numeric Data Type:


Numeric Types: Numeric data types are used for describing numeric values for the field used
in the table of a database. Numeric data types in a database can be used for storing information
such as mobile number, roll number, door number, year of school admission, true or false
statements, statistical values, etc.

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.

You might also like