0% found this document useful (0 votes)
30 views12 pages

Data Integrity and Normalization Concepts

The document discusses various concepts related to data integrity, normalization, and database design, including primary keys, composite keys, and the importance of removing redundancy and dependencies in database tables. It outlines the rules for achieving different normal forms (1NF, 2NF, 3NF) and the significance of maintaining relationships between entities. Additionally, it touches on the structure and purpose of data lakes and the handling of data types and constraints in relational database management systems.

Uploaded by

omkaraher306
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views12 pages

Data Integrity and Normalization Concepts

The document discusses various concepts related to data integrity, normalization, and database design, including primary keys, composite keys, and the importance of removing redundancy and dependencies in database tables. It outlines the rules for achieving different normal forms (1NF, 2NF, 3NF) and the significance of maintaining relationships between entities. Additionally, it touches on the structure and purpose of data lakes and the handling of data types and constraints in relational database management systems.

Uploaded by

omkaraher306
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

* Gansoaints

N¡T Null
peçaultat
nique
peimae-y keyi
check [Link] E4
Tndex Consteaint.

Dato ntegeituto) oni


Entity zntegarty ensuoeg tha theoe
Noe,n0 duplicate 9oa8 ia
a toble.
dato enteged intoa
Dottain Integaiy calumitTheust match the
Colunns
foofno
depined dat type .
ndConsfaints
Clength., allaoed values)
Refee endial znHegaity foaa Conngh
Jdeleted be
ashich ae
uged by otheog aecoodg.
Ai Uee Qeçtned TntegYty; business
engaocesGuleSomethot
Spgeipic
atsasL nat
do not foll into pntty
* NoHalizotion
elainaing edundant data. ( duplicate dato)
Ensueing 0ala dependenele6 (Relaianghip
aeen attaibute8
kel.
bet
withit table)
* LNP (As Noanol poom
Automic Value6( Eveoy Colum/ Shauld Contai
Repeahing Geupß
*2NF [Link] eemal foen
TH Should be meets oll Ne ules
Remove paltial dependency
* Paohialdependeoyaa

d GtuderTpo CouoseL0 L3tudentnm cahm e


Ram ytiol
402 Sham, J&va
Heorepaimaoy key5=(StudenD,
Pyhon
Couose D)
wEkgeCompoaite
Composite keyApoimaoley made of mooe
thon one columh.
studentnm
Shudentnm ndepends only
depends onY of
n
sudenbetD
CouoSanm depende oty CouoseTO
io paotial dependeney
* paetial Dependencyahen q
Column, dependeon paat op a
non-key
Copposte key

shudentTD sludentnm
RaM.
102 Ansasa sham,
108an G Gaheshgt
CoubGeid CouSSe-nm

python.
Ja va.
Sudentro Coudseid
do1
Gnin.e2haunoo
SNÀu(Thied Noonal fom)

Remave teansitive dependency


* toaneithe dependerncy
Non key Colamn depend6 on anothe 6
non -key Calumn hotdiqectly oni the
This Cau6e data gedundanc
All non paimapelda
dependent on te paimay key.
stunm Cnm Thstouto
Ram yhon M5ingh
402 shaM Java mg. mehfa
403 Ganesh ython m fing h e

Hee
compocite peimaoy
ohunm depend6 on. Guid, ok
Cnm
but
depends on C-id ak
TnsteuctoG depends on c-nm
TO Remove Töonsi ive Dependency
ohuid Stunm
Ho Ram
s 6ham
Gonesh
Inskauco
0Python Me Gingh
C2 odava M6. Mehta

suid S C id

ulatoltoGamslen
bist
identipieg each oroYde
Prinoey key - uniguely
tchoald be notrull, unique
of,oftibutes (olumrs)
Candi date keythat 6e
- Aunigdely identify o oocw
the CaFdid ote key cho8en
ane op
paimaoyhey
Aleanate key- CaFdidate keys not choSen
as the pimosy hey
egBa
-esta bliahes o aelationghip
foreign key betweentao tables. a
haye duplicate Valpe and
Nullsunless specipted)
6 Composite key -A Combìnation of two o
moGe ColurnnS that uhlquely
identips a 0w.
Gupee key -A Set op one 0 moae Calumr
thot can uníquely identiey a

7EVeey poimay key I8 a Supea


key
egGtudent ratoad a
stodentzD Chai name phone deglid
xyr@gnia
Peimaey key ’ cBudenlzD
Candidate key ’ studegko
email

Alfegnote key ’ email


fdoeig n key ’ [Link]
Compositekey ’ enail, h¡Me
6utif should be unique.
Suqee key -’ studentrD
(skudentD, Nome
(SBuderti0, emal
Components of ER Diagea
* Enlity
weak entity
entity
Sleong entity
Aleibute
Gimple
compogiteiiph

Saniha Gingle Volied u


mulli valueod
deaived

Nam e
ey
qolationship

Tdentigy ing

Tt is cenealized Gystern used poo Gtooinq


and Monggnq ooe volumes
foom Vagtaug 60uce,.
op data

*Dato Mget
AA GubGet op a data woaehoute. focuaing oq
a 6pecipic' buisness aGeo
adea. 0a depotment
* Oota loke
-A Oota lake ig a centoolized oepositooy
that allow6 you to store Gteuctuod
Gemi stauctued ond ungouctueed dotá
ot any Gcole in Gaw foom.
Toan6foGm oow8 ioto Column6.
* Unpivat
Tàanspoè Colummg tnto [Link]
* what happens to (uul inaggoegate fan chion6.
d ignosed except Count C
RDBM6 - AcTD
Constoaints chek, null, forimgay, foiegn.
Types
CTE
of integeey
Valid oelotienship.
atomic, ardt shodd ber Cormleteq
A4 no at all.

Wlkhsceend
C- VaidState to end
T- TBnsloaon' donCanglict eaeh other
Coimithed Alaags tere

dimengions. th
6loa) chargng
Yype-a jot chagdata
aNea èite the data.
YPe S bata last the ola datoa
AddneaJ, Gocw
THpe-2 seepsCo nplehe.. Histoay
Add ne Colum
ype-3
eiCueeept and pevku Ge
only sto
only Hisheeytapte, Hisfaey
Not ohoed
pull Histoy
Hyberd
Combination op ype t,25.
Hable
Uee epaoate hiso ea
table
fse Calcolate roll salaey fo enp.
name Sal
foom mp
null gooup name
tull
null
hae
hull

*Any apeoator. aoih null


(Null +doo) = jull

You might also like