DBMS Assignment
DBMS Assignment
Privacy Shutter
PAGE NO.
DATE
TRUST'S
ATHARVA EDUCATIONAL
OF ENGINEERING, MUMBAI
ATHARVA ATHARVA COLLEGE
cOLEGE OF
-4
Assignmcnt
Moclel foy_cn real ife
cQ.LCanstruc Conceptual
application
Balance
Account) Deposit
Nme) Acldes
Withdrau)al Branch
Eatiby
Acc Numnhe
IESC) (email)
Balance
Loan
Account) Balance)
a Note on Database Languages
Q 2.k/rite
Ans:
Lang laqes:
Datobcse
lanquag es Useol bo mona
DBMS.
ege, fine,
•Specialized control data in t
anol
maniplte
inteact with the
alow vserS to
D Th |anguA
ese eS
various operations, 6Uch
data bcse bo perform
deletinc, or acdina do
ta.
retrieving, upcatinq
implementing, maun taining, cn
o They are cruci al tor
secUri ty ot the
database.
the
a re
The maun
un types ot dateb asc larguages
fellows:
Data Deini tion Lanquaqes
define anolmodifu
anol the
C):
struture ot dato
• DDL iS Us eol to define vie w5, anl schemos
tables,inlenes,
bae obecs such ontrol the strue tu e ot the datebase
cas
• These co m manls it
itselr not
the data within
> Key
- Gran A: Giyes specitic pzivi leoes to U6eY6
Rexpke Remoes soeeidic arxile eqes rom
OY ole.
An S :
- The pocess converline an Enit-Releions hio
o
tronstormat'oni
EMopping Entiies:
Reoqulor
Steps For each entity in the ER molel, ereate a tuble
-Altribues: Each etlribte of the ehtite becemes
column in the to ble.
• Pimory key Select the entiy's primory key asthe
table s primag key
Example o3)
- En tity: Student (studen t I) Neme,
- Table: Student (S tudent) PRIIARYKEY,
Nime, DoB)
Weak Fntiti es!
•S teo! Create a te ble tor the week enity.
Include the primory key
the owner enti
Foreiqn 2e4
foreign Key in Hhe weak enti ty's tob
le.
• Fxample
- Weok Entity: Dependent CDependend Namc,Agc
Fmployec 10)
- Table De pende nt COep endent Hlame, Age,
Fm eloyee lD Fore qn Key. Pimay key (Depencen!
Nom e, Emplay ee 10))
PAGE NO
ATHARVA EDUCATIONAL TRUST'S DATE
ATHARVA
COLEGE OF ENGINEERING
ATHARVA COLLEGE OF ENGINEERING, MUMBAI
Mappiag Nelaionshiace
Ansi
Bin an Relationshios
-Ad he pxima Xey ot
of ane entitty os
in the athex entiFs
pimoJable
Bing ru I Relations hla
- Add Ehe primary Keyol thc " side as a
in a data buse
indeqrity in
-Followina are key typs
aPaimoy key' value
o Uniquely identies
each record: no: Null
•Fach tble has ony one primare key
. Ekamylei 6 tuder tiD in a ótudens bcible.
a Conidte key'
iolend te ecorels;
• Attribdes that can uniquelq
choo6en as the pimarg keg
Exam ple i Bo th ShudentD enel Emqil can be
candidate we4t
key
Super
A set od attri btes thed Uniquely tolen liy
attibales
neor Ccan include ertta, non-egoenhal
Aletnade key
key net chasen cs Ehe primat
Keq
•A candialate Hhe
Fxamleit Fmul io not choseo as
Foxeiqh Key
e ke4 co m pos ed o
A
ar more to attites bhat
Fnialments tehte