Professional Documents
Culture Documents
COMPUTER SCIENCE BY
AAQIB KHAN - AKI
CHAPTER - 6
DATABASE LECTURE 2
RDMS & KEYS
YOUTUBE CHANNEL:
CS BY AQIB KHAN
CONTACT: +92 314 5030717
(9678)
SANQiR AS LEVEL
-
A
cH8 5)
->
RECTURE#2 outubeis]
ATONAL
DATABASE
structured collection ofitems of data that
↑ATABASE can A
differentapplication pOOgRAM
Be
by
accessed
-
#s
I TABLE
Types ofDATABASE
-
-
pisdational
DB
2 OR TABLE
MORE
called Based
Approach thatare link
gether
-
Also ~
To
Form Relationship
-
- Relational Pipity
# Project-TABLE
1)
EmpcEMPLOYETwane
TABLE
Column/field/Attribute
-
~>
at ame
salary
DO B
openotatinocators
- ->
EachFile is asses
By Differen
Application
-
en
poico
file Based p| PRimary Key (PK) Enique identifer
=
attribute in
itthen Become
consistent
Enquiries
1
③
pretendstructure
atan
Depends
available can
of
on
g.***
1
↑ S
Qualify as
Unique KEY
WPK(PRimary KEY) ->Value in each TupLEis
Unique
candidate key that
③ SK(SecondaryKEY) -> is an
a is
alternative to
primary key
Ek(foign KEY) -
I Attribute/Attributes
to
-
in one
anothere
table that
to form
link
a Relation
⑤
CompositE KEY -- when 2 Attributes combined together to
make one
primary Kay
⑭
CompositeKEY
-ooooon,wolnusi
Musq
p
nes
ComposiEKey
80 sil
0
->
->
2
-
L
-
->
-> C
->
->
o
->
-5
↓
->
#as
Redundancy
Repeated Data
->
Database
exog Adata
-
more Columns in
Database
dats
To
speed up Scarcing FR
ppQ ->
X
①
->
② ⑤
->
or -ia/"
⑤
->
⑥
->
⑦
->
->
⑧
->
ppQ >
-
⑤
①
②
③
④
⑤
⑥
⑦
⑧
⑨
⑩
situation in which
ELArioNSHlSEHas a
Foreign By
thatRefers to a
->
--
f--
⑦
-2
-
->
Many
may
->
PHOTO
* USeR < TEXTPOST
=
2ay!
- pental
Integrity
S that does notcontain any values of
database
property of
a a
&
0
↑
Δ Retential <
- integrity
-
297
- -
May -
one
↓
o
PK
OFK
o
⑳7
④I
->
May
-
2
-
<
⑭
C 5
man