You are on page 1of 27

IT301

I
:
.


10
20
1,2 20
1, 2 20

RDBMS and Data Management/ Session 1/2 of 22

Session 1
RDBMS Concepts

.
.



.
RDBMS .
,

DBMS RDBMS .
RDBMS and Data Management/ Session 1/4 of 22

RDBMS and Data Management/ Session 1/5 of 22

,
, .
RDBMS and Data Management/ Session 1/6 of 22




.
2 :

File-based systems

Database systems

RDBMS and Data Management/ Session 1/7 of 22

File-based systems 1-3


File-based systems- :

.


.

RDBMS and Data Management/ Session 1/8 of 22

File-based systems 2-3

Sales
Database

Sales database :

PropertyForRent
OwnerNo)

(PropertyNo,

Address,

Type,

Rent,

PrivateOwner (OwnerNo, Name, Address, TelNo)

Client (ClientNo, Name, Address, TelNo, PrefType, MaxRent)


RDBMS and Data Management/ Session 1/9 of 22

File-based systems 3-3

File-based Systems- :

Inconsistency

Queries

Integrity Problems
RDBMS and Data Management/ Session 1/10 of 22

Database systems



.
Database systems- :

share


RDBMS and Data Management/ Session 1/11 of 22

Database Management System (DBMS) 1-2

,

.
DBMS

.
,
, .
query SQL
(Structured Query Language)
DBMS- query .
RDBMS and Data Management/ Session 1/12 of 22

Database Management System (DBMS) 2-2


Data entry and
reports

DBMS

Database

Data entry and


reports

RDBMS and Data Management/ Session 1/13 of 22

DBMS-

DBMS- :

Data Definition

Data Manipulation

Data Security and Integrity



Data Recovery and Concurrency

RDBMS and Data Management/ Session 1/14 of 22

Database Models 1-5


.



.

RDBMS and Data Management/ Session 1/15 of 22

Database Models 2-5

RDBMS and Data Management/ Session 1/16 of 22

Database Models 3-5

Flat-file Data model

.

.

Hierarchical Model


.

.

.
RDBMS and Data Management/ Session 1/17 of 22

Database Models 4-5

Network Data Model

Hierarchical Data Model- .


The hierarchical model network model .
The network model
.

.
.

RDBMS and Data Management/ Session 1/18 of 22

Database Models 5-5


Relational Data Model:
Relational Model- .
.

.
Operator- .
model
. model- tuple, attribute
relation- .
domain .

RDBMS and Data Management/ Session 1/19 of 22

Relational Database Management System (RDBMS)

A Relational Database Management System (RDBMS)


,

DBMS- .
A relational database

.
Relationship

Database

TABLE 1
Key

TABLE 2
Key

Data...

Data...
RDBMS and Data Management/ Session 1/20 of 22

RDBMS

RDBMS- :


.
.
.
.


.
RDBMS and Data Management/ Session 1/21 of 22

Term

Meaning

Relation

Tuple

Attribute

Cardinality of a relation
Degree of a relation

Domain of an attribute

Primary Key of a
relation

Foreign Key

R1
R1 R2 .
R1 R2

RDBMS and Data Management/ Session 1/22 of 22

RDBMS Users

, ,

Database Administrator (DBA)

Database Designer

System Analysts and


Application Programmers

DBMS Designers and Implementers


End User

RDBMS and Data Management/ Session 1/23 of 22

Entities and Tables

Entity ,
, , , ,
.

Entity
entity .

entity
entity .

ntity
.
, tuple, .

RDBMS and Data Management/ Session 1/24 of 22

Entities and Tables


Attributes

Table
EMPLOYEE
Emp_No

Emp_Name

Emp_DOB

Emp_DOJ

345

James

24-Sep-1968

30-May-1990

873

Pamela

27-Jul-1970

19-Nov-1993

693

Allan

10-Sep-1970

01-Jul-1992

305

Geoff

12-Feb-1973

29-Oct-1996

Tuple

RDBMS and Data Management/ Session 1/25 of 22

Difference between DBMS and RDBMS


DBMS

RDBMS

RDBMS,

.



.

RDBMS
.

DBMS RDBMS .

DBMS RDBMS .

DBMS-
architecture .

client/server client/server architecture


.RDBMS and Data Management/ Session 1/26 of 22


.
Flat file system ,
, ,
.
DBMS ,
.

, .
RDBMS , ,
.

.
.

RDBMS and Data Management/ Session 1/27 of 22