Professional Documents
Culture Documents
: B
Certificate
LDCE-AHM 1
1
190280107111 Div. : B
VISION
To achieve academic excellence in Computer Engineering by providing
value based education.
MISSION
1. To produce graduates according to the needs of industry, government,
society and scientific community.
4. To enhance the ability of students to address the real life issues by applying
technical expertise, human values and professional ethics.
5. To inculcate habit of using free and open source software, latest technology
and soft skills so that they become competent professionals.
LDCE-AHM 2
2
190280107111 Div. : B
MARKS OUT OF 20
Sr. Title Page Date Grade Sign
C1 C2 C3 C4
No. No.
(5) (5) (5) (5)
1. PRACTICAL-1 4
2. PRACTICAL-2 15
3. PRACTICAL-3 26
4. PRACTICAL-4 40
5. PRACTICAL-5 50
6. PRACTICAL-6 60
7. PRACTICAL-7 64
8. PRACTICAL-8 71
9. PRACTICAL-9 74
10. PRACTICAL-10 79
LDCE-AHM 3
3
190280107111 Div. : B
PRACTICAl-1
LDCE-AHM 4
4
190280107111 Div. : B
3.Change the name and city where account number is A005.(new name =
‘KOTHARI NEHAL’ and new city = ‘PATAN’).
LDCE-AHM 5
5
190280107111 Div. : B
5.Add the new column (address varchar2 (20)) into table ACCOUNT.
LDCE-AHM 6
6
190280107111 Div. : B
LDCE-AHM 7
7
190280107111 Div. : B
8.Update the column balance for all the account holders.(multiply the balance
by 2 for each account holders).
LDCE-AHM 8
8
190280107111 Div. : B
Table : LOAN
1.Insert the records if you have not inserted in PRACTICAL-1.
LDCE-AHM 9
9
190280107111 Div. : B
2.For each loan holders add 100000 Rs. Amount into the column loan_amt.
LDCE-AHM 10
10
190280107111 Div. : B
5.Display only those records where loan holders taken a loan in month of
January.
LDCE-AHM 11
11
190280107111 Div. : B
LDCE-AHM 12
12
190280107111 Div. : B
LDCE-AHM 13
13
190280107111 Div. : B
LDCE-AHM 14
14
190280107111 Div. : B
PRACTICAL – 2
TABLE : INSTALLMENT
1. Insert following Records if you have not inserted in PRACTICAL-1.
LDCE-AHM 15
15
190280107111 Div. : B
LDCE-AHM 16
16
190280107111 Div. : B
LDCE-AHM 17
17
190280107111 Div. : B
LDCE-AHM 18
18
190280107111 Div. : B
LDCE-AHM 19
19
190280107111 Div. : B
TABLE : TRANSACTIONS
1. Insert a Following Records if you have not inserted in PRACTICAL-1.
LDCE-AHM 20
20
190280107111 Div. : B
2. Insert any duplicate value and display all the records without any
duplicate rows.
LDCE-AHM 21
21
190280107111 Div. : B
LDCE-AHM 22
22
190280107111 Div. : B
LDCE-AHM 23
23
190280107111 Div. : B
LDCE-AHM 24
24
190280107111 Div. : B
LDCE-AHM 25
25
190280107111 Div. : B
PRACTICAL – 3
Using Operator: NOT,BETWEEN,NOT
BETWEEN,IN,NOT IN
1.Retrieve specified information for the account holder who are not in
‘Ahmedabad’.
2. Retrieve specified information for the account holder who are not in
‘Ahmedabad’.
LDCE-AHM 26
26
190280107111 Div. : B
LDCE-AHM 27
27
190280107111 Div. : B
LDCE-AHM 28
28
190280107111 Div. : B
LDCE-AHM 29
29
190280107111 Div. : B
LDCE-AHM 31
31
190280107111 Div. : B
LDCE-AHM 32
32
190280107111 Div. : B
LDCE-AHM 33
33
190280107111 Div. : B
LDCE-AHM 34
34
190280107111 Div. : B
UPPER
LDCE-AHM 35
35
190280107111 Div. : B
SUBSTR
LENGTH
LDCE-AHM 36
36
190280107111 Div. : B
LTRIM
RTRIM
LDCE-AHM 37
37
190280107111 Div. : B
LPAD
RPAD
LDCE-AHM 38
38
190280107111 Div. : B
LDCE-AHM 39
39
190280107111 Div. : B
PRACTICAL – 4
1. Display the sum of balance of account holders who’s live in same city
‘Mehsana’ using group by clause.
2. Display the information about account where balance is less than total
balance of all account holders.
LDCE-AHM 41
41
190280107111 Div. : B
LDCE-AHM 42
42
190280107111 Div. : B
LDCE-AHM 43
43
190280107111 Div. : B
LDCE-AHM 44
44
190280107111 Div. : B
13. Display the balance and amount of transaction group by amount and
balance.
LDCE-AHM 45
45
190280107111 Div. : B
LDCE-AHM 46
46
190280107111 Div. : B
LDCE-AHM 47
47
190280107111 Div. : B
18. Display the balance, mode of payment, loan taken status whose
mode of payment is ‘CHEQUE’ and loan taken is ‘YES’.
LDCE-AHM 48
48
190280107111 Div. : B
LDCE-AHM 49
49
190280107111 Div. : B
PRACTICAL : 5
LDCE-AHM 50
50
190280107111 Div. : B
LDCE-AHM 51
51
190280107111 Div. : B
LDCE-AHM 52
52
190280107111 Div. : B
LDCE-AHM 53
53
190280107111 Div. : B
Create a table:STUDENT
Name of column Type and Size
Rollno Varchar2(6)
Name Varchar2(20)
Branch Varchar2(6)
Address Varchar2(20)
LDCE-AHM 54
54
190280107111 Div. : B
1. Add PRIMARY KEY (roll no) and provide constraint name PRIM_rollno.
LDCE-AHM 55
55
190280107111 Div. : B
LDCE-AHM 56
56
190280107111 Div. : B
LDCE-AHM 57
57
190280107111 Div. : B
LDCE-AHM 58
58
190280107111 Div. : B
LDCE-AHM 59
59
190280107111 Div. : B
PRACTICAL : 6
The fields in a view are fields from one or more real tables in the database.
You can add SQL functions, WHERE, and JOIN statements to a view and present the data as
if the data were coming from one single table.
The database engine recreates the data, using the view's SQL statement, every time a user
queries a view.
LDCE-AHM 60
60
190280107111 Div. : B
LDCE-AHM 61
61
190280107111 Div. : B
LDCE-AHM 62
62
190280107111 Div. : B
LDCE-AHM 63
63
190280107111 Div. : B
PRACTICAL : 7
SELECT * FROM T1
WHERE Salary > 5000;
ALTER TABLE T2
ADD deptname varchar(20);
UPDATE T1
SET Designation = “senior clerk”
WHERE Ename = “ram”;
(ii) Display name of students who got more than 60 marks in each subject.
(iii) Display name of city from where more than 10 students come from.
LDCE-AHM 65
65
190280107111 Div. : B
(2) count the no of employee and Sum the salary of all employee
LDCE-AHM 66
66
190280107111 Div. : B
(b) Calculate total mark and percentage and also arrange the students on
Ascending order of total marks and also makes a view of it.
LDCE-AHM 67
67
190280107111 Div. : B
LDCE-AHM 68
68
190280107111 Div. : B
5 Consider the employee data. Give an expression in SQL for the following
query :
Employee(employee-name, street,city)
Works(employee-name, company-name,salary)
Company(company-name, city)
Manages(employee-name, manager-name)
(1) Find the name of all employees who work for State Bank.
LDCE-AHM 69
69
190280107111 Div. : B
(2) Find the names and cities of residence of all employees who work for State
Bank.
(3) Find all employee in the database who do not work for State Bank.
(4) Find all employee in the database who earn more than every employee of
UCO Bank.
LDCE-AHM 70
70
190280107111 Div. : B
PRACTICAL : 8
1 Write down the query for the following table where primary keys are
underlined.
Person(ss#, name, address)
Car(license, year, model)
Accident(date, driver, damage-amount)
Owns(ss#, license)
Log(license, date, driver)
(1) find the total number of people whose cars were involved in accidents in
2009.
(2) Find the number of accidents in which the cars belonging to “S.Sudarshan”
LDCE-AHM 71
71
190280107111 Div. : B
(4) Add a new accident recorded for the Santro belonging to “KORTH”
OPEN Book_cursor
Fetch Next from Book_cursor into @book_title,@publisher,@book_price
While(@@FETCH_STATUS = 0)
Begin
Print ‘Book Name = ’ + @book_id
Print ‘Book Publisher = ’ + @publisher
Print ‘Book Price = ’ + @book_price
LDCE-AHM 72
72
190280107111 Div. : B
(ii) Write a trigger such that if record is deleted from book table, insert old
record in book_backup table.
LDCE-AHM 73
73
190280107111 Div. : B
PRACTICAL : 9
Unit :1
1 Write a PL/SQL code block to calculate the area of a circle for a value of
radius varying
from 3 to 7.Store the radius and the corresponding values of calculated area in
an empty
table named Areas.
LDCE-AHM 74
74
190280107111 Div. : B
3 Write a PL/SQL Block of code that will merge the data available in the newly
created
table NEW_BRANCHES with the data available in the table BRANCH_MSTR .if
data in the
first table already exist in the second table then that data should be skipped.
LDCE-AHM 75
75
190280107111 Div. : B
Unit:2
1 Write a PL/SQL block to display whether the given number is Odd or Even.
LDCE-AHM 76
76
190280107111 Div. : B
Unit3:
1 Write a PL/SQL Block to print the sum of numbers from 1 to 50.
LDCE-AHM 77
77
190280107111 Div. : B
2 Write a PL/SQL block to display the detail about given employee from EMP
LDCE-AHM 78
78
190280107111 Div. : B
PRACTICAL : 10
LDCE-AHM 79
79
190280107111 Div. : B
LDCE-AHM 80
80
190280107111 Div. : B
2. List the name of suppliers who have supplied all the items.
3. List the details of suppliers who have supplied atleast one item supplied by
supplier s504.
LDCE-AHM 81
81
190280107111 Div. : B
4. List the details of items supplied on 27/12/97 having the unit_price less than
Rs. 100.
LDCE-AHM 82
82
190280107111 Div. : B
6.List the name of suppliers who have not supplied any time.
7. List he name of suppliers who have supplied sugur in quantity less than 10
kg in last month.
LDCE-AHM 83
83
190280107111 Div. : B
LDCE-AHM 84
84
190280107111 Div. : B
MARKS OUT OF 20
Sr. Title Page Date Grade Sign
C1 C2 C3 C4
No. No.
(5) (5) (5) (5)
1. Assignment-1 86
2. Assignment-2 92
3. Assignment-3 95
4. Assignment-4 100
5. Assignment-5 114
6. Assignment-6 120
7. Assignment-7 129
8. Assignment-8 133
9. Assignment-9 140
10. Assignment-10 143
LDCE-AHM 85
85
86
87
88
89
90
91
atel Sudiuns/he . /90280109// lASSMALc
Date
Poge
ssignncnt
LaduonLR diagaam Of yous Choicc
Stxeet
Addsess imuy key
Cmp. TDD
CA pust
Em ploype
alcta
Num
(Fnume aba BOD CE
mne
Sunum
Specialization
LnSpCcializalion, an Cnity is
15 divided
diveded uty
Sub -entitics bucd On thela Chuructenistr'cs.2
top ooaun cppaoh uheac hiyhes tevel Cntii
Specialz.cd into two 0 moe Louweg Leve enttis
o Caumple MPLOYtE entlty in u n tmp bye,
munugenmct System cun be Speciulzcd0to DVELOt
TEsTUR etcus Shawn in bu f1qux lh this Cue foTRu
Luttibutes k c E -Tt f Salaay eBc
TeSTER Devclopoc
To Ty)
TIume dube
Customeð
Stoon
woak
cnLtiy
Lonamau-
94
30280/0t1!I Rtel Slhonshu elassmto
Date
Poge
Hssiqnment3
Ans Join Dpeocution sC to co mbine ntoonutlon faom tuo
0ac aclutions
Join qp coutoa UScol as
thsc ypcs o Join opcaut os
DTheta_jon A B COxB)
2 Cauijoin3 This kindof joinin which theac sis
CuilityCodition betucen tuo ctaibuics f aclations-
3)Natuxal join when thcac Lac common (olu mmS uDd
CL c hax to_Cuule thesc_Cormmons then ue Yscd
nultuaul Loin
X Books M JCVCOSse Booksk 3cueS
Ans-2
DSupea keyIb c set of onc o mazc ataibuts_slthtn
atable that Cun unigutly ialcntity uchacod culhin a
bable
Cey No. slLna Nmc maaks
AL
A2
AA 5
B& g0
A3
CC
Req no and C3oll ho, 8 nr s c his aie
idcnbty JcLoads
2)Canddute keg : 1 is a sinyle attovbu ts oa leasi ominmal
Combinution cettolbutes thett unquely iCty Cach acwd n
twble.
2n abak tryry no ) am aall noa ad dat.
19025010 211
Bns-3
thc funccions
functions
funtion Thisfunctjans aat
agocgate
Hagacgate
gaovpallogcthca_CLS
ancac1Ialuc_O mattapic ous_Cua
nput o Ceatajn_CaiBcaiaf3omn_c Single Value _
VariouS CLgg20qae fu2nction UJC
5 Mcax )
1D Count O 3 6A g)
2) um j )61in O
RodRod na. Maks
AA LO
50
3
Hns
elahonul 0pesdtions
Selcction2 pojection Catesian
PJOduCt
Set oln
e Sudenl ocDeTve
Sd SNamc Sid sha
AA 21 do5 2*7-13
BB 2 05 3-3-12
3 CC
O04 S-1-L6s
DD 23 96
cASiniLe
Dare
Page
9025010211
Find numes of ell the studens uho have JescavtSbn:005
Ost udnt-sid 2eSc Gid reseTv
LSbn O05 student X descavc
Outet
Sr Snamne age Sid isbn o
AA 21 5 2-7-18
Bb 8 05 3-3-18
e Customez Acc ount
Name Bunch Bounch
Raipe Pone
umba mumb
A umbu
punc
a l al ualozt heving In allthe bounthes
alu Namc
A
os-6
in clationq L Cuc C Aand) VCO) tn93
0pcoction
cuses l
xrstentia C ) am UniuLISUl udntitca slY|
to bird he vanable
Student1 SCSpaVe
S1d Snumae isbn-
21
O 05 2-218
Ram
2 5hyam
Oo5 3-3
16
0 0 --6
Flns-
Pelational algcbau :
1 s upaoccdusal qucay (cenguagakich_1s USC
Lo COLLCSSS duta Dasc tables qm to 3ctaieye thc iitaanth
Lo
in the tom ot aclati0nala
alecbc_ exPXSSION
Poopcat1cs
Tmakes SC of Opcact toas and se uahons as
Opcods
In hio, One oo tuo ehons CeeUSedq inpu cu
thesinglc aclation ieezaied as Output ahat-
name 98
clASSMAte
Date
Page
1902801 11)
cchclutia calgcbocipaodedurseal
Tb besed on scl hcany amdoess not clleu dupliute
Cntaics
It does3nt_oake USe Of uny englsh sutement
mpoata nce
It Paoidcs foamal foundapions a clctional mOdel
PCOtions
Tis4Sa5 a bastar inmplemenBing ad aptimizing
RUCies in uday paxCC5sing
cEmOu 1 2 0 (loun))
qmavH 1200 (lun)
3 stona
)Lcustonca-hame (
Lboaaouw.cazUNcaskbmez-pemedcpasitaa
tustonta TumE hsowC ators-NO depi1teI)
99
Patel Sudha nshu R ASSMAte
Date
Page
Hssignment u 19028O10i1
LWhoat is tzansacbion yplain the ACUDDaaper ties.
A toansaction cun btdcincd a 9oup of
tusksbaat rom 5ing logical unit
unit
i Atomitity
Ths_p3opoty Stores that each tansaction must be
Considcd C CL singleunit end must be mpleted
ully On not Complcied at all
L)Consisktncy
hcdatubasc
The 12nust 2cmain ln consistcat state Ofte
o tnpcatoaningcu tadnscction.
CIsolation
Ln databusc Sy stem whoat mo than onc tounset e
In btin;
cLac exccuted simulobaneo usly_and in a patulle
thc
thc paoptaty of isalation state thatall the tzansatioa
Cal be coHed sut a r xeLuteds it is thc only
adnsaction n theSystcn
iv Dhuzab1lity
Thedatabais shauld beStaanenaueht hunck ang
System failuac
Taansuction skafes
Hcervc:This isthe Fias Skaie_Ofanisáthicn
inseziion delcbion o Plutron- cCazdis dobne
hea 100
alassmate
Dale
Page
190260io7111
3Paatially commilkd
Whcna taunsachon exccuttd 15 tinal pcaatrin
itis Said to be patiuLLy Conmmtted stutc
Perbtially Comittc
COm bea
trve End
fd failed boated
O Hhorted Zi then h
taansachtan is faild da exe cute
datubu5 secovez SYskem_wLlLmike Su22 thui the
L T T
RCA
RLA)
RCA
CA
CA
RCD)
LawlA)
Shep1 We aibl cid laopatop tobotlom qod buih a
paccedentc 9zuphfos
fo30tliciing enlaics
Skep 2 hea S no(YCIein the Pcctdehcc
As heat uph
he ajxen 5equcnu Conflict SCataltion
Step 3 Ascleulizability Otdca thethe taans n he
obtaincd by tinding Îmcr 0de Cosisten alia-
the puaiel 7dca poccedcne
cp.24 End Jhe Caict ahich hs ha Incomny iJe
whrh p(timlly imd the vcatea huyuing no agoin, 102
ASSMAe
190280
SCializability_th Coniikt s2i h74
Dafeacnt icake jicao
Véc gaailuzablity
Contic Scaalizability
wo Schcdula aacSuct
wo Sdhedules a Said o
be Contlict enVLilcnl i be viC 22VIhe ordca d t
allthcconilictn opaation inlhal c a d t i n a wziie
in both the: SChcaule T and updatc dIations -
XCCUBCin the 5ame dcthc Samc in botih Schedule
L Sdhesdlc is_contlict LI schcdvlc i vitw u t o
Cuto iks Scala Scheoule1t5 Scaia Shcdles
TheTheoc a tant1tían
OCCua 103
clasSMAte
Dote
Page
902slo7
1 Mutal Cxcd1s ion condillon ha ms6 be c
Ves orce
Ehat
CLDY2 19ues uddi hona
a bclng hcld by 3thes
p3occsscs
2nthesystC
2 Plold
and aarb_cordation paocess tha
canbbc usgd b morethat OYepgoce5
af t bime
Dcte -
Paga
190lH
Intially -l00 B:200 C 300
hc
caCLSh Occus ftea
1 Justtc uaile CB.bl
Jus
3) Sus utte 1Commit 2
Loy
TStat2
T A 100 9
A90
T8,200
B:210
Commt
12Sto
L 303,280
A2
Commit
unocd LN)
lack-as(A)
RLA)
Urlo 108
xla\
ASSMALe
Date
Page.
1902600t))
LokSLO)
2C6 RLA)
Lock %CB)
RB)
OJCA)
CommE
Cnlock1 )
cnlath Lh
aucntu qs
Scaializabilit
Dsaduaun.toa
2ans daudlocks
t T euds to CCi5 coding adock
Rcud LAD
Lte (C
Rec 109
lASSMAte
Dafe
Page
1901s010 tHIL
hcn 1, lles value Df (dhen onbs12 Con rucd
tAND ho auhcn T waileshe Vcluc of hen Ohly
taunnction con cad Bu if he taaniact ion
C C5tailcd hen uBomaticall aansudtian 7, v -
eks foiltd
T T
CCd A
bcaatg2
Commit
Cad
ii l i v a lack
The exhs)a_loch 1urd foz bath OCCId cnd uitC
Opeaations T 1denolcd CLS Lochx This is als
calledas anitk loch n ce SCt o loi m4
cons o Shout on exdusne løck_falla.arn-
uiak p,enis the Comubiliky betaun_mudes
flock,
110
ASSMAte
Date
Pag
90280/ot)0
Exelain Deadlock dctaction
Lndcad lack clectior mcchansm-, an a
trt
The S e o thc in invoks.Dicricalyto de3emme
0a hot. lfdcadladk
he hen dcadlock hus dcu
acciçelecdedthcn 5yslt1 mut tany to
SCCue asm
wait t s piph
hisyauph Consis 9 c Pa G-CVE ahex V
C SeO Ues ticics nd USet o cd9c
2
RCAD
RA2
wCA
Gu CA)
CB)
Les us daau
Stcp VCabie1G ha qll the transactin
2
Ccfpnd the Recad-Uale Puis TJom tuo
dtrcsiltyansaclions acadrng
SSuch o Poa 15 for hen o Go add t h -
ody befoeeCon al ecron foo rt)3
RCAD T)
CA)
RCB)
111
SSMAte
ate
poge
19217
Step
2.0h)
CA
CuCA
wCB)
Cyclessdchecded In thzaai 40uph tiee
no nced o uothiz(p0ceSS
LsT 3) , C2 x) z
y) , (Z) w(z)
y) Cz Lz)0C z)
LY ,L) C Z) , CZ)
SLp 2
ocSetncence aaph
T)
eualy Lheac PxIss cycle In the paccodm
00ph.
ntttooC Ehe givcn3chedu le S:a nat cO ntlic-
5echali2able
113
Patel Sudhanshu R 190280107I elASSMAte
Date.
Page
Hsszniment 5 Diy-B
Waitc a shoat naBeon uey pIOLCSSin
uay9aoECSing colleztion of ectivitics Zhut a13
is
tnvolucdin tra.cttnq duta taom dtabusehaing
Qucy paoCcSsing Ehesc tunsio.tionhigh evel
gekbusetunguage 2utaaics into he ypacSsions that can
be uscd u he physzccal level on _F2lesystcn
Basic tcpsof ucay paocc S5ing
1 aanslah on
in_tus step the 2ueay 13 ans lakd into ik
intenal loam and thon into aelutionulalyebau
2 Opbimi zation
Dusin h DooleSs}he ueyevaluition plan s
DTepaLacd fom l he aclutonul algibaic
exp3ess10N
1/he ueay cast ox all the ednlution_ plans is
Culculahe2d
Amn all CquValcat plansthe one cuth ocst cøt
Cost is cotimateduSing 3kitisticol_Lnt
lntaamtim
the databasc datalaq udh as the numbtz
o tLples in- Puch aclatioT)Si 2 o taplesetc
3 vuluation
The 8Uy xCUuion_engi_takes_a 2ucay- Cualubion
plenLxecUtes hat plan cnt 3ttu2n the naucs
Query
pbnslator Relabional- calgchas
ExessJon
Optimize
Stadste
Tbon
Outpurt Evaution 114 dae
Engne Txeutron ptan
CIASSMALC
Data
Page
1902801a71|
) Oulane looo C(
belent Ceccouné))
Li)Llasee balon
hlont1000
Shep-2 Quea Cveluton plun
VLdELOUTI) Ihalene djcleame &TO0o
t i )Cacc.ount) 6radernct00
togo bcrtone
ischocn
3Once he Queay plans
Step-3 the 2ue
l_eucluutedcuih_hat plan
1)lossy dccopositon
the decomposihon ofaclerion R inta Ri and R,i loss
Guhen the jotn d R R, das ol yiclsEhe Sam
6 inR 11 1 alsg etHeacd e Lossy-}Oin-
gecompos1ion
he distiducaate4t o
The Such kiad of decamposibion
thut sDme inBaoamahon is lest cluaiy actolval of Jea bar
.
n o Bal Acet-joined
Hccount A0 5oa AnBal 1Bname
Aa Bul Bnamc A02 500o A 0 3000 laA-
AO 5000 Koed
AOL50m
590aud
Vua
Bel-Byonch 02 00o|
an
A02
a l Bnome A02 500Kaud
5000 Vg
5 000 koud
elakion_teccountahlel 2s
The fgLDe shos Bal-Bname: na cuhe
and_Ba
dcuomposed into e t Bal
Gned
Cettnhvle
the comman
use
sColtanl vill_look ikehect-jonid
Balence he atlafion
Ehe 5 a m e a Oaiglncel
Thob is
Ihat is onO Ehe
116
lASSMAte
Date
Page
190260JOt1)
2) on loss decomposstio
Teedewmposition ofelahon R nto CLd
is Lossoss jotn of , n d odu.
he sam elation n in Tis q tten
CLS ls deco1203ition. AL_d:comp2S1tion m
be Lossls
AcBu bccioined
ACco lAna Bilana
Bul Bnani o 5300 0S0o0
non
AO 500 Von 5000 025060
A0 5o0
Accbname
AOL Van
0 2 koud
190LSOotl
Selection opesabron dstribute Ov theta join Opaato
undca he tollowin condiron
Cuhenall Ehe attsibus En CLnvalue onl
bhc att ibute af dne oi h xpac sSian htin4Jaines
119
Pakel Sudhorshu R 9026010t||| clasSMte
Date
Page
Hssigmment: G Div
Explcuin Specialization gerneelization Concepb
ER dLgacmCith Suitable exCLmple
Specialization:
Ln$PCLiulization dn entity isdivtded into suh
Cntitics scdon thcia chaaLtealstiG
IEis dtop-daun ú mLh ahez hiahz lec
entity is Speciali23 into tap moae lo Levcls entinis
mploy ee
LE
Salaay name
LS
Testea DevcLopea
-Tupc
attaibutes ike ndm Sale
n Ehis C4se ¢mmon
higneaentity and5ec2ed
etc beLome2pzt of
(Tesgec
entity Ls nneLied_aith Speciali2ed attaibtes
encBLiza.tton -
ADIEAtics
Le is th poccss of Cxtaach nq COmmon
ntities LD Cea _czenrSai2
Om( set a
hight Lntity fzom i
CopDOúLh n ahich ta0 mAC
4 is bottom 1
be gencaaized o G highe level entit
entitrCS(an
Gomc_CLktalbatlr n_(Omman
i they have
atultypan be geneauli2ea
2 Student and
thi_cCse
hiaho levelentity Celld23501
-NamCPddd eLone a t ot
LOmman attaibukes Lke
entity nd SpACLallz0 aebaibufes ik 5.Fee
hrohes 120
19026lot11
22whut _is Noamaliztion xpluin 1 NE, 2NE3lE
NE LNE and bCNE
Nomclization_Ls_bhe pcess_e Doganizlny the
data in database sed to minimiz h
edundancy tzom 3cleation a et of aclaticns.T
i i Clso USed to eliminake thc undcSiule_cha.aacteajshe
Like nseatior UpaaBe Lnddelchion Hnomyalies
2
Bihaa
Sm 229033 89 Puaiab
6L$9%30302 Pnib
121
clASSMAte
Date
Page
1902%0lotl
2NE CSecond poncl foam
1n 2NE aclukion must
be in NE,Qnon-key
attaibules dac ullu unctional dcoendtnt on the paim
keu
1902K01o_
amp=
222 20ol0
333 am- 0222%O
Jahn
555 Bal
laah 4C2002
TagZI? mpS tule
201olo UP Noid
US
O922%0 BasteF
OSOoo US ChiccM
Nozuich
42002
Bhopu
4NECfouath noametl taam)
elattan wll be in UNEE IE_s n_Bucc coddd
YOsmal tamm_dna p45 O myltNucd dependnt 123
alASSMAte
Date.
Page
1902xoldt
5TD CouasSe Hoboy
2
Computcz Vancin
Maths SLnging
3 Chpms kay Dantin9
59 Bjolagy Caritkch
Dhysicss Hocke
The giuen STUDENT able s In2NL hli tha Loe
C Hob
Hobba4c Huo lndcpendcat_entlty Hcnu he
Lution Shlp betweenCouzsc nd 1obby
D S ludent CawsSe Shudent Habbu
S-;D_Couase S-1p
21 Lamputea 21 Duneng
Maths Sinuiny
Chemis 34 Dandnu
Bialocy Lie
physics 59 Hacke
BCNE CBosce Codd noamCiL_Faam);
BCNE is he dduane V¢ilan t NE Stzlte
than 3NE Atuble s in BiNE fungéiolGL
190230111
NE Cfih Ocama
i_zelation isin 5NEit itis n 4NEand jaininy
should be loseless 5NE Satisneduhcn al thc tuble uzo
baoken nto Cs manytublas as passiale 10 cadca 221uda
e-
Saubject LectulerSEr
Conpu'ez Anshin4
Lamfutca
halhs John
laths Heash 2
Cnemisizy Paavccn
Chemstay Puveen \
classMAte
Date
Page
P SEM Okolo
Lt-CTURER
Anghku
Jahn
1aha
kash
C00i1dea a zlatjonr R h
Hviny folloaine dependenty tiuc_cizibuke i BLD.E
ldt all Jey of R iA0,CT ED= -
bIn_auhich Eable_oam table isushty yoh linlu
SrnceKA doesn'E huve_CO So CCDE)
CACO) : ABLDE ED ABCD
CB CD AeCD
So kcys 33 AcDEDf¢D
a CAOLDE
ED
ALL C Po2&ne
attoibues
So CABDE)p in 3NE
4Lwha 1s functiondl dcpcndonuy xplaln is usage in
daabuse desiqn
7he tuctional dependcncy is qaclationship thg
Qxistsbetaeen two_sttalkues s typically iSs_betucen
the 122aimazy key Cmd non- kcy attaihaeithin a tuble
The lrt Sde o_ED_Iknown a deheaminunEne
aight_Side of the paoductionsknan us 4 depeldeni
Fmct1Onal dependen dCkesminesEhe aclatton ot a
atta1ube ta analhe qtaibutei h a_ DbMs_ 126
clASSMAte
Date
Poge
1902&0l0711
FD. hclps o muin tainthe aNat hy O Datu -7L uA
LEalso hcps la _pacvanbt ng data acdundancy Cnd es
abau the bad designs
5With example xplan Vdaous ma)pinq caadinalitie
ira.
totalpáaticijution
mappiny_Cuadinality i s u datu Cons 1lnt nar
sptciis) hou a_enhtcs m entiy un aldtta to
tn aacleationship set Lis mastUSe hulio
cscalbln the 2elationship_Scs hak Lavdve mac
Tha
Cao entitq setS
One bo any
- la his mapin Cin Cniity E14Sociaicd
CibhQni) onumbe ot entt cs 10 Lnd can_eoiy
in 1S1 QsSociaied (ith at
mostgac ¢ntihy ln
tii)fMany to onc
neai ty- in _G is g6ciubsd Gith g mast_ane
entllu10 a Lat1ty in howCuGa CL he assoCigte
ith an ntez_Of entitic ia 127
clASSMAe
Dote
Poge
902&0o ?11)
V lunyts muny
hn entiby iM_ s a4sDtictecl with n runbe
oentitics and an entity in G i asoaa
umbt Cntics n
A
2
- As
1otal Paoncipctlon
in_ thc acationshp
f inualwd
ach entity
i s knonC babul puttdpution
D llee_um
Ceil
1902801O)
CLlcessContag Und.
any
22Expludn in dctail:
Ducaction
cless Cntaol
Mandatooy
contaol EDAC 2
Costion4ay uccess
DAC allaws cach LiSC3 O Sabjct to Contoollit
t o thcid own data Ln piC Onca Ot esouace
o n the
cstoict CLLLesS_to the Lsouaces bascd
entih of scs
AC s Eypicly the de tault aCEsS CONtaol mehune
OPcutin Saystem ach 3esauace obich
n DAC bescd syslem hus Gccoun cant5ol_ lic.
Ch contain lis of Uscs und CTaLps to
which_ the sea huu peomitted CILLcSShaçethça
ith bhe lexel ok aCcess fon ecuch sea 0 gaoup
e
tsti.doc Poa)ku acud 1
test2exe mkika execule Pagikku Ceate
test 3 Com Ankileaecute De0d1-
Advontae
T lexible.
Te hus Simplc and-elficicnt COCCCss Jizh_ Malem
-IL Stukuble
Disaduamiey
T incactuses tha aisk hat dzto coill be lo-
acessieto usas that shauld nothe
Thca
qiven ULSS-
s n0 COntaol OEa intasmatan ttocu
130
clasSmte
Date
Page
1902&01l1LL
Muntatoay AcLess ontml L1AC)
Tn MA hc dLcess Conhaol decisions aat bascd on
Specit oclationships betoeen the Subju Seues hny
LCcess Cand bht 0hjcttto which 9ccs5 S cquentu
Lt qunully used in qovchnmcnk nd miltuay
Unlta AL ucCCSS to all ssoeacc gbjcts s Contgal
Settm
Seitsng detined by the Suskcm adminstauta
To chcn4e Ehc qcces Contol af a acsouat is n9t
DOSs ible unolea MAL
MAC bepins Cth secuai'by labels assigncd b al
SCCOMaC 0bjcks On the System. Theác tabe Lotuin
2allaaing infoamuBion
Adaysiticatfon 5uch us contidcnhial
ttalbut assoesated
Lparovidcs bh.e ClasSsific.atign toa tuple coha
e tmp_nome ScuLca D.utoaman
Cfcai
Sham LOo0 5 good
C Contidcncial S Secoct
UUncLas Sihed STap Steaet
dyanugs
MACo0ovides uahco Sccuiby CinddcducescFaDaS-
Drs.caouan tages
ALTequiatsCaactulplannin nd Lan HDuuy
mani tooing tokep all CsaLace obicksad
us.cos clasifcca
tion s depe
19020)ot11
I is pootectiny the data to ensuac palveey
Cnd CLLLCSS Control of dutu uthoaizdtion
gimg CicCess to uubhoalz co Useas
132
190260lo?||) Partel Sughanshu R lheswate
Date
Page
sstanmernt Div3
1Dcme
Weak Cnuy is an entby that Canot bcunigucly
sa ident1fied ik attatpuke alonc
2
15lmany_kru laimiuokey cantauwat uniqucly icdentie uch
gecoa in table,
D.3
OVOL Vza Dekinat1an lamuuye (UDL IS USed tS220SLtu uxa
Vcus_da thtlDmapplng ConupEualScheia
5
TalleTublo USe
the datakast abJecs
aclalional database
Page
1902&01o7t11
Resbaiction psaLionlhe Reslatck pau taats the Spccificed
aples Josfaom th GYCn delahon base in condition
DL Compilea taanslit DdL stutcment in uque lunguge
1 0 0 beaparte7
DDL inkeap 7elea texpoctsDDL Sshqpemends
3COdds khe qneaated stutement n the tuhe
foeimLeyPoduchid)
Kibcalta Paodve
ON DELETE Cascude
19026010hl
Lnmos j6im
AnAnnca on ucCach aau m the horo joind tubes
ta haematchiay colum valucsgnd a comnonly used
JOmOpCadtiam i nappliciign-
902601U
01 Lplcain
pDL
Deata Detination lanyauge
ta deline daiu Staucd use
1 DDL Lanqua 9 used
aod modity Dutu
Stam
nyynetNON Attpata3m Gnopauijan
LnpU_StaingCndackyan an aulput_Sialng-
R NG CHAB-LENGTH Thu. ynchonI3 ud to in length
LHARLENGTH CHELLO1 4
LCASD-- Th iumcti.om s d o convCgt gve Stainy
LCASE HCLLo") hella
138
lAsSMAte
Date
Page
SQL2
Scle
Shaft
Cheae 1lgounet o 0
SOLL7 COmnit
Koll back
lE a taansuctrongl Qtaal lonuus4 hch s
S Udca bh l sackians t e hat kaa-
SNOVC iA- deatogu
139
falel Sudhanshu . 1902%01071 clASSMAe
Date
Poge
HssiynmEnt 9 Div B
L Explun
Stooed PaOcedUxd
Stoxdpaocduacs Coc poc complcd objccb Guhich compilc
ro bhe tiat tc and tb Conpilcd fmat isS hth
Executts Whcnavca it s Callkd
PoOCcduaccnam dctuan ZCao n valuCs
poocduacCCLn hac put Outpu pasometea
accu acs Canmot becallcd taorm hunchian
Functions i
iunction is Compilcddnd cxccutta euc me whcna i
2 plamslygLa
195L80
Tnstcod on talggcas
Instcud o taigycos_descaibe bw to _pcaton Lnscat,Upda
elete peaatrons agait_omplka UICUS-
Sumbax
CaCahe Lalgyca Taigyco-Name
On Datab
ton cuteTable PLlca -TahleDap- Table
Begm Taigyca Bsly
ND
Lmpliut Cueps
CaLoltedhy dctaut_awhen DrL, sehme l -
LNSERT JPDH JEOm DELEIE
hey
Stclkeniottd Cccltad -
Cacicd te Dgaccss thasc sfe@hema
vplicit_CuascS
Tha mst_be caclkd Cahy you aac CTLCuin4
Thy
SELLT
statcmen ocakE dctuam ma thunOA 30
Lven hough the (uasJ Stga miltple
n accoadsonly-
acud Canbe paagsssdd Ctaftme chch e
cdas
141
ClASSMATe
Date
Page
142
etel Sudhanshu R . Div B ASSMAte
Dote
Page
tss iq/6nt-10 19028010i
.1What s B:tacc and hat is u t aes
sclholunci2 Scuxch, tacc
Whenbhe- numbta of ktys shh bhc du
aead taom disk hetoam d blocks
Search O Cioan
Olaan
Delche OCLoyn
902&01a
0 CxCmple pCSspoae is as2 acess
Cway_hcash functTon_and hu
thaoug Onc
Ce anc
144