12
Presentation By: Asad Raza (178) Mohsin Javed (102)

Presentation of DBMS (database management system) part 1

Embed Size (px)

Citation preview

Page 1: Presentation of DBMS (database management system) part 1

Presentation By:

Asad Raza (178)

Mohsin Javed (102)

Page 2: Presentation of DBMS (database management system) part 1

Topics :

i. What is DBMS ? Data Items & Records.ii.Reasons for using DBMS?

Page 3: Presentation of DBMS (database management system) part 1

What is DBMS?o A Data Base Management System is a collection of

logically related data files as well as programs required to manage that data.

o It is a computerized record-keeping system. It maintain data and provide it to user when required.

o Example: A bank DBMS may have separate files for the clients as follows:• Saving Accounts• Current Accounts & clients information etc.

Page 4: Presentation of DBMS (database management system) part 1

Components Of DBMS :

1- Data:• Data is a collection of

facts/figures stored in the database.

2- Hardware: The physical components of a computer system.Example:• Secondary Storage & Main Memory.• I/O devices & Processors.

Page 5: Presentation of DBMS (database management system) part 1

Components Of DBMS :

3- Software:• Software is a collection of programs used by

computer within a database system.• DBMS uses three types of software to enable

the database system work properly.i. OS Software: It manages all hardware components & software to run on computer.ii. DBMS Software: It manages the database in database system.

Page 6: Presentation of DBMS (database management system) part 1

Components Of DBMS :iii.Application Programs: • These are used to access & process the data stored

in the database. 4- Personnel :- The people related to database system are called personnel. They are as follows: Database Administrators: They are responsible of the whole database system. They authorize access to database and monitor the use & working of database system. Application Programmers: They write application programs to access data from database.

Page 7: Presentation of DBMS (database management system) part 1

Components Of DBMS : End Users: These peoples use application programs to perform different task on database. They include clerks , managers , directors etc. Hierarchy Of Data in DBMS: o Data in database is classified in a hierarchy.o A database contains

files>records>fields>characters. Field: • A combination of one or more characters.• Field data type: Indicates type of data in field.• Field Size: Defines maximum no of characters in a field.

Page 8: Presentation of DBMS (database management system) part 1

Hierarchy Of Data in DBMS:

Record: • A collection of related

fields treated as single unit.

Example: Employee’s record. File: • A collection of related records

treated as single unit.• Files are stored on stored on

storage media like Hard Disk etc.

Page 9: Presentation of DBMS (database management system) part 1

KEYS:

Primary Key: • An attribute or set of attributes that

uniquely identifies a row or record in a relation/table is known as primary key.

• A relation can have only one Primary Key.• Each value in Primary Key attribute must

be unique.• Primary Key cannot contain null values.

Candidate Key: • The attributes or set of attributes that

can be used as primary key is called Candidate Key.

Reg No Name Class

10 Asad C.A

20 Mohsin P.H.D

30 Zeeshan M.B.B.S

The attribute Reg No is Primary Key.

Page 10: Presentation of DBMS (database management system) part 1

KEYS: Alternate Key: • The candidate keys

that are not selected as primary key are know as Alternate Keys.

Composite Key: • A primary key that

consists of two or more attributes is known as Composite Key.

Page 11: Presentation of DBMS (database management system) part 1

KEYS:

Secondary Key: • An attribute or set of

attributes that is bases for retrieval is called S.K

• One Secondary Key value may refer to many records.

• Secondary Key can be a non-unique attribute.

Foreign Key: • A Foreign Key is an

attribute or set of attributes in a relation/table whose values match a primary key in another relation.

Page 12: Presentation of DBMS (database management system) part 1

KEYS:

Sort/Control Key: • An attribute or set of attributes that is used to

physically sequence the stored data is called sort/control key.

Facilities Of DBMS: Adding new files to database. Inserting new data in existing files. Retrieving data from existing files. Updating data in existing files. Deleting data from existing files. Removing existing files from database.