Вы находитесь на странице: 1из 16

CSE- 511

COMPUTING LAB I
ADBMS
I semester M.Tech(CSE)
201
Prepared By (Dr. Dinesh Acharya U)
Approved By
(HOD)
De!t "# C"m!$ter Sc%e&ce ' E&(%&eer%&(
O)*ect%+es,

1. Experiments covering the study o re!ationa! data"ase eatures
#. Experiments covering the study o o"$ect%Based data"ase eatures
&. Experiments covering study o O'AP and ()'
O$t-%&e,
1. Design o *e!ationa! Data"ase (1 +ee,)
#. -.' (1 +ee,)
&. P'/-.'(1 +ee,)
0. O"$ect%Based Data"ases (# +ee,s)
1. O'AP(# +ee,s)
2. ()'(1 +ee,)

#
1. Des%(& "# .e-/t%"&/- D/t/ B/se
[Refer ppt slides in Tutorial Week1]
1.1 3onsider the o!!o4ing set o re5uirements or a university data"ase that is used to
,eep trac, o students6 transcripts7
(a) 8he university ,eeps trac, o each student6s name9 student num"er9 socia! security
num"er9 current address and phone9 permanent address and phone9 "irthdate9 sex9 c!ass
(reshman9 sophomore9 ...9 graduate)9 ma$or department9 minor department (i any)9 and
degree program (B.A.9 B.-.9 ...9 Ph.D.). -ome user app!ications need to reer to the city9
state9 and :ip o the student6s permanent address9 and to the student6s !ast name. Both
socia! security num"er and student num"er have uni5ue va!ues or each student.
(") Each department is descri"ed "y a name9 department code9 oice num"er9 oice
phone9 and co!!ege. Both name and code have uni5ue va!ues or each department.
(c) Each course has a course name9 description9 course num"er9 num"er o semester
hours9 !eve!9 and oering department. 8he va!ue o course num"er is uni5ue or each
course.
(d) Each section has an instructor9 semester9 year9 course9 and section num"er. 8he section
num"er distinguishes dierent sections o the same course that are taught during the same
semester/year; its va!ues are 19 #9 &9 ...; up to the num"er o sections taught during each
semester.
(e) A grade report has a student9 section9 !etter grade9 and numeric grade (<9 19 #9 &9 0 or
=9 D9 39 B9 A9 respective!y).
Design an E* diagram. -peciy ,ey attri"utes o each entity type and structura!
constraints on each re!ationship type. >ote any unspeciied re5uirements9 and ma,e
appropriate assumptions to ma,e the speciication comp!ete.
1.# 3onvert the E* diagram o exercise 1.1 into a re!ationa! schema
&
Assignment Day #
1.&. 3onvert the o!!o4ing E* mode! o Hospita! data"ase into a re!ationa! schema
1.0 3onsider the universa! re!ation *?@A9B939D9E9=9A9H9B9CD and the set o unctiona!
dependencies A ? A9B %E 3; B9D%EE9=; A9D%EA9H; A%EB; H%ECD. +hat is the ,ey or *F
Decompose * into #>= and then &>= re!ations.
1.1 >orma!i:e the given ta"!e to #>= and & >=
Detai!s7
HappyHome supermar,et dea!s 4ith groceries9 househo!d items9 stationary products and
git items. 8hey have announced a summer me!a 4here9 or every customer 4ho ho!ds a
mem"ership 4ith HappyHome9 any three items can "e ta,en or ree. 8he tota! price o
the three items shou!d "e e5ua! to or "e!o4 rs.1<<<. 8hey record detai!s o these ree
products given to their mem"er customers in a ta"!e as "e!o47
@ BnvoiceG9 )em"ershipG9 3ust name9 Address9 Btem19 .ty9 Amt9 Btem#9 .ty9 Amt9
Btem &. .ty9 Amt D
0
1.2 3onsider the o!!o4ing re!ation or pu"!ished "oo,s7
BOOH (Boo,Itit!e9 Authorname9 Boo,Itype9 'istprice9 AuthorIai!9 Pu"!isher)
AuthorIai! reeres to the ai!iation o the author. -uppose the o!!o4ing dependencies
exist7
Boo,Itit!e %E Pu"!isher9 Boo,Itype
Boo,Itype %E 'istprice
AuthorIname %E Author%ai!
(a) +hat norma! orm is the re!ation inF Exp!ain your ans4er.
(") App!y norma!i:ation unti! you cannot decompose the re!ations urther. -tate the
reasons "ehind each decomposition.
1
#. -.'
2.1 O+er+%e0 "# S1-2 P-$s c"mm/&3s /&3 DDL
[Refer Tutorial Week2/2a]

2.2 4r%te the S5L c"mm/&3s t" cre/te / 3/t/)/se schem/ #"r the #"--"0%&(
re-/t%"&/- schem/7
CUSTOME. (CUST6ID7 CUST6NAME7 ANNUAL6.E8ENUE7 CUST6T9PE)
3U-8IBD must "e "et4een 1<< and 1<9<<<
A>>UA'I*EJE>UE deau!ts to K#<9<<<
3U-8I8LPE must "e manuacturer9 4ho!esa!er9 or retai!er
S:IPMENT (S:IPMENT6;7 CUST6ID7 4EIG:T7 T.UC<6;7 DESTINATION7
S:IP6DATE)
=oreign Hey7 3U-8IBD *E=E*E>3E- 3U-8O)E*9 on de!etion cascade
=oreign Hey7 8*U3HIG *E=E*E>3E- 8*U3H9 on de!etion set to nu!!
=oreign Hey7 DE-8B>A8BO> *E=E*E>3E- 3B8L9 on de!etion set to nu!!
+EBAH8 must "e under 1<<< and deau!ts to 1<
T.UC< (T.UC<6;7 D.I8E.6NAME)
CIT9 (CIT96NAME7 POPULATION)
[Refer Tutorial Week 2/ 2b for the data set]
2.= Per#"rm the #"--"0%&( 1$er%es,
1. +hat are the names o customers 4ho have sent pac,ages (shipments) to -ioux 3ityF
#. 8o 4hat destinations have companies 4ith revenue !ess than K1 mi!!ion sent pac,agesF
&. +hat are the names and popu!ations o cities that have received shipments 4eighing
over 1<< poundsF
0. +ho are the customers having over K1 mi!!ion in annua! revenue 4ho have sent
shipments 4eighing !ess than 1 poundF
1. +ho are the customers having over K1 mi!!ion in annua! revenue 4ho have sent
shipments 4eighing !ess than 1 pound or have sent a shipment to -an =ranciscoF
2. +ho are the drivers 4ho have de!ivered shipments or customers 4ith annua! revenue
over K#< mi!!ion to cities 4ith popu!ations over 1 mi!!ionF
M. 'ist the cities that have received shipments rom customers having over K11 mi!!ion in
annua! revenue.
N. 'ist the names o drivers 4ho have de!ivered shipments 4eighing over 1<< pounds.
O. 'ist the name and annua! revenue o customers 4ho have sent shipments 4eighing
over 1<< pounds. 1<. 'ist the name and annua! revenue o customers 4hose shipments
have "een de!ivered "y truc, driver Censen.
11. 'ist customers 4ho had shipments de!ivered "y every truc,. ( use >O8 E(B-8-)
1#. 'ist cities that have received shipments rom every customer. ( use >O8 E(B-8-)
1&. 'ist drivers 4ho have de!ivered shipments to every city. (use >O8 E(B-8-)
10. 3ustomers 4ho are manuacturers or have sent a pac,age to -t. 'ouis.
2
11. 3ities o popu!ation over 1 mi!!ion 4hich have received a 1<<%pound pac,age =rom
customer &11.
12. 8ruc,s driven "y Ca,e -tinson 4hich have never de!ivered a shipment to Denver.
1M. 3ustomers 4ith annua! revenue over K1< mi!!ion 4hich have sent pac,ages under 1
pound to cities 4ith popu!ation !ess than 1<9<<<.
1N. 3reate vie4s or each o the o!!o4ing7
a. 3ustomers 4ith annua! revenue under K1 mi!!ion.
". 3ustomers 4ith annua! revenue "et4een K1 mi!!ion and K1 mi!!ion.
c. 3ustomers 4ith annua! revenue over K1 mi!!ion.
1O. Use these vie4s to ans4er the o!!o4ing 5ueries7
a. +hich drivers have ta,en shipments to 'os Ange!es or customers 4ith
revenue over K1 mi!!ionF
". +hat are the popu!ations o cities 4hich have received shipments rom
customers 4ith revenue "et4een K1 mi!!ion and K1 mi!!ionF
c. +hich drivers have ta,en shipments to cities or customers 4ith revenue
under K1 mi!!ion9 and 4hat are the popu!ations o those citiesF
M
&. P'/-.'
[Refer Tutorial Week 3]
1. +rite a P'/-.' procedure that accepts a sing!e positive num"er as input9 and
prints out the actoria! o that num"er.
#. Hand!e the division%"y%:ero exception in the invert unction 4hich computes
inverse o the given num"er
&. Hand!e no%data%ound exception in a simp!e procedure9 "a!ance( 3>ame B>
JA*3HA*#9 Ba!ance OU8 >U)BE*) that prints the "a!ance or a speciied
customer rom the simp!e "an,ing data"ase.
0. Aive a procedure on "an,ing data"ase to inc!ude too%many%ro4s exception.
1. +rite a PsaeQ 4ithdra4a! procedure9 4ithdra4a!( Acc>o B> JA*3HA*#9
Amount B> >U)BE*) on Account ta"!e. 3hec, or suicient "a!ance and
update the "a!ance. Use an exception to hand!e the case o attempting to
overdra4 an account
2. +rite a procedure9 transfer(giveAccNo IN VARCHAR2, receiveAccNor IN
VARCHAR2,amount IN NUMBER) to transer money rom one person6s account to
another. 3hec, or the transer amount "eing negative and chec, 4hether the
giver has suicient unds to a!!o4 the transer.
M. 3reate a pac,age "y inc!uding e4 procedures / unctions deined a"ove and
demonstrate the usage o the same.
N. Aive a procedure *ichPoor(Amount >um"ers)9 that iterates through the
Accounts 8a"!e and c!assiies customers as "eing either RrichR or RpoorR (our
deinition o rich is anyone 4ho has more than *s.#<<< in an account). Use
3ursor.
O. +rite a procedure ca!!ed Branchist that produces9 or each "ranch9 a !ist o
customers and the tota! amount o money he!d in accounts in that "ranch. 8he
procedure shou!d produce the output in the o!!o4ing ormat7
a. Branch >ame S Address
". 3ustomer 'ist
c. 8ota! Deposits
1<. +rite a procedure ca!!ed C!oseBranch that ta,es t4o arguments (the "ranch to
"e c!osed and the "ranch to ta,e over the accounts) and transers a!! accounts and
!oans at the c!osing "ranch to the ne4 "ranch and removes the c!osing "ranch. B
the destination "ranch does not yet exist9 assume that it is a ne4!y%opened "ranch
and add it to the Branch ta"!e9 4ith a message to remind the user to supp!y an
address or the ne4 "ranch. Use parameteri:ed cursors.
11. +rite a sing!e 8rigger 4ith mu!tip!e triggering events (inserting /updating /
de!eting). =or eg.9 disp!ay the type o operation 4henever it is app!ied on the
Accounts ta"!e o the simp!e Ban, Data"ase.
1#. +rite a trigger to imp!ement the o!!o4ing7
+henever a 4ithdra4a! / deposit operation is app!ied on the simp!e "an,
data"ase9 insert the ro4 eected9 "eore updation9 o Accounts ta"!e into
O!dIAccounts(attri"utes are same as that o Accounts T UpdationIdate) a!ong
N
4ith the -ystem Date.
1&. Bnc!ude the Payments(!oanInum"er9 paymentInum"er9 paymentIdate9
paymentIamount). ta"!e into Ban, Data"ase o 'a"1. +rite a trigger to update
the corresponding ro4 in the !oan ta"!e9 4henever a customer does the !oan
payment.
O
0. O"$ect%Based Data"ase
[Refer Tutorial Week 4]
O)*ect T>!es /&3 O)*ect .e-/t%"&/- T/)-es,
1. 3reate an o"$ect type PpersonQ that contains name and phone num"er. 3reate an
o"$ect ta"!e PpersonIta"!eQ or this type. Bnsert ive ro4s into this ta"!e using "oth
the methods(re!ationa! and o"$ect re!ationa!) o insertion.

#. 3reate a type R$o"R 4ith our co!umns7 R$o"tit!eR9 R$o"IBDR9 Rsa!aryIamountR and
RyearsIoIexperienceR. 3reate an o"$ect ta"!e R$o"Ita"!eR or this type. Bnsert 1
ro4s into this ta"!e.
&. 8ry dierent se!ect statements on "oth ta"!es9 such as
R-E'E38 U =*O) ...R9
R-E'E38 name =*O) ...R9
R-E'E38 p.name =*O) ...R9
R-E'E38 JA'UE(p) =*O) ...R

O)*ect T>!e /s User De#%&e3 T>!es,
0. 3reate an o"$ect type RaddressR that contains street name9 num"er9 !at num"er9
city9 posta! code9 and country in a manner so that street name9 num"er and !at
num"er are c!ose!y re!ated(use user deined data type) and country is separate
rom a!! the other attri"utes.
1. Drop RpersonR and RpersonIta"!eR. 3reate a type RpersonR 4hich contains irst
name9 midd!e initia!9 !ast name9 phone ("usiness9 home9 mo"i!e) and address
(rom exercise 0). )a,e sure that irst name9 midd!e initia!9 !ast name are c!ose!y
re!ated and that the phone num"ers are c!ose!y re!ated to each other.3reate an
o"$ect ta"!e RpersonIta"!eR that corresponds to RpersonR.
Bnsert ive ro4s o data into RpersonR. (>ote7 you6!! have to use the o"$ect%
re!ationa! orm o insertion).
I&her%t/&ce,
2. 3reate a type Remp!oyeeR under RpersonR that has an additiona! attri"ute
RempIBDR o type B>8. 3reate it as >O8 =B>A'. 3reate a corresponding
emp!oyeeIta"!e and insert & ro4s into it.
M. A!ter "oth the emp!oyeeIta"!e and the $o"Ita"!e (rom exercise #) so that they
have primary ,eys.
.e#ere&ces ? .E@s,
N. 3reate the emp!oyment ta"!e using *E=s insert & ro4s into it.
O. +hat does R-e!ect U rom emp!oymentR sho4F
Print the comp!ete inormation rom ta"!e Remp!oymentR in t4o ormats7
=irst9 print it in a 4ay that it sho4s a!! types and a!! data. (E.g E)P'OLEE
(>A)E (6)ary69 >U''9 6Ed4ards6)9 ....) Lou can do this "y dereerencing
1<
(DE*E=) the t4o co!umns o emp!oyment.
-econd9 print it in a 4ay so that it on!y sho4s the data9 not the types.
1<. Using the emp!oyment ta"!e9 print the names o a!! emp!oyees 4hose sa!ary is
!arger than #<<<<. Print the $o"tit!es o a!! emp!oyees 4ho !ive in Edin"urgh.
(>ote that in contrast to re!ationa! data"ases you do not need a $oin to do thisV)
11. 3reate an o"$ect type Rpro$ectR 4ith co!umns7 Rpro$ectIidR9 Rpro$ectI!eaderR9
Rpro$ectItit!eR 4here Rpro$ectI!eaderR is a *E= to person. 3reate a corresponding
o"$ect ta"!e Rpro$ectIta"!eR. A!ter the ta"!e so that pro$ectIid is a primary ,ey.
Bnsert & ro4s into Rpro$ectIta"!eR.
1#. 3reate a ta"!e Rpro$ectImem"ershipR 4ith t4o co!umns Rpro$ectIidR and
Rmem"erR so that the pro$ect BDs are reerences to pro$ects "ut can on!y "e i!!ed
4ith data rom pro$ectIta"!e. 8he mem"ers are reerences to person and can on!y
"e i!!ed 4ith data rom emp!oyeeIta"!e. Bnsert & ro4s into this ta"!e. -e!ect a!!
ro4s rom this ta"!e using dereerencing o the t4o co!umns.
11
1. O"$ect%Based Data"aseW.
[Refer Tutorial Week 5]
Member Methods:
1. 3reate 8LPE $o"#9 4hich contains the same co!umns as the type $o"(exercise #
rom !ast 4ee,Xs exercises)9 "ut a!so inc!ude a method
Reva!uateI5ua!iicationR to print Rtoo "adR or a!! $o"s that have !ess than # years
o experience9 ROHR or # years o experience and RgreatR or more than t4o years
o experience.
#. Add a second method to the type dec!aration o $o"#. 8his method is ca!!ed
sa!aryIraction. Bt ta,es a rea! num"er > as an argument and returns the sa!ary
divided "y >. =or examp!e9 i > is 1#9 it returns the month!y sa!ary.
&. 3reate an o"$ect ta"!e or $o"# and insert three ro4s.
+rite an -.' statement that se!ects eva!uateI5ua!iication and month!y sa!aries
or a!! ro4s o the ta"!e.
+rite an -.' statement that se!ects a!! co!umns or ro4s 4hich have an 6OH6
va!ue or eva!uateI5ua!iication and a ha!%year!y sa!ary o more than 1<<<<.
0. A!ter the person type rom !ast 4ee,6s exercises(exercise no. 1) so that it has a
printIname method. 8his method prints the !astname9 a comma9 a space9 the
irstname9 a space and then the midd!e initia!(Use P'/-.' string concatenation
operator is YY).
1. A!ter the person type rom !ast 4ee,6s exercises so that it has a method that
counts ho4 many categories o phone num"ers a person has. 8he categories are
Rhome phoneR9 R"usiness phoneR9 Rmo"i!e phoneR. 8hus the resu!t must "e
"et4een < and &. (>ote7 >U'' can "e used 4ithin P'/-.' in the same 4ay as in
-.'.)
M/! Meth"3s,
2. 3reate a map method or RpersonR so that o"$ects o type person are ordered "y
!astname9 irstname9 midd!e initia!.
C"--ect%"& T>!es,
M. 3reate a type phoneIcode that has areaIcode and !oca!Inum"er as attri"utes.
3reate a type phoneInum"ers as a ta"!e o phoneIcode. 3reate a ta"!e company&
that has the attri"utes name and phone9 4here phone is o type phoneInum"ers.
name phone
1#
6a"c6
/re/6c"3e -"c/-&$m)er
6<1&16 6#0&%0M1N6
6<1&16 60N1%#1&06
Bnsert severa! ro4s into company&. >ote that in contrast to the insert statement or
company#9 you no4 have one more !eve! RphoneIcodeR 4hich must "e used 4hen
constructing the va!ues.

N. Use the ta"!e company& rom the previous exercises.
+rite -.' statements or the o!!o4ing7
-e!ect a!! phone num"ers 4hich "e!ong to a given company name.
-e!ect a!! companies 4hich have a certain areaIcode.
-e!ect a!! !oca! num"ers.
1&
2 SM. O'AP
[Refer Tutorial Week 6_7]
Bmp!ement the o!!o4ing mu!tidimensiona! star schema7
@/ct T/)-e,
-a!es(pid7 integer9 timeid integer9 !ocid integer9sa!es rea!)
D%me&s%"& T/)-es,
'ocations(!ocid integer9 city7 string9 state7 string9country7 string);
Products(pid integer9pname string9 category string9 price7 rea!);
8imes(timeid integer9 date7 string9 4ee,7 integer9 month7 integer9 5uarter7 integer9 year7
integer9 ho!iday7 "oo!ean)
3onsider the instance o -a!es re!ation
1. -ho4 the resu!t o pivoting the re!ation on pid and timeid
#. +rite a co!!ection o s5! 5ueries to o"tain the same resu!t as in the previous part
&. -ho4 the resu!t o pivoting the re!ation on pid and !ocid
3onsider the 3ross%ta"u!ation on -a!es "y year and state
0. -ho4 the resu!t o ro!!%up on !ocid
1. +rite a co!!ection o s5! 5ueries to o"tain the same resu!t as in the previous part
2. -ho4 the resu!t o ro!!%up on !ocid o!!o4ed "y dri!!%do4n on pid
M. -ho4 the resu!t o ro!!%up on pid o!!o4ed "y dri!!%do4n on timeid
3onsider the 'ocations9 Products9 and -a!es re!ations
N. =ind the percentage change in the tota! month!y sa!es or each !ocation
O. =ind the percentage change in the tota! month!y sa!es or each product
1<. =ind the average dai!y sa!es over the preceding &< days or each product
11. =or each 4ee,9 ind the maximum moving average o sa!es over the preceding
our 4ee,s
1#. =ind the ran, o products "ased on tota! sa!es in sorted order
1&. =ind the top ive products ran,ed "y tota! sa!es
10. =ind the ran, o products "y tota! sa!es 4ithin each !ocation
11. =ind the top three !ocations ran,ed "y cumu!ative sa!es9 or every month over
the past year
12. *an, a!! products "y tota! sa!es over the past year9 and or each !ocation ind the
dierence in tota! sa!es re!ative to the !ocation "ehind it.
10
N. ()'

[Refer Tutorial Week 8]
1. 3onsider a ail order data"ase in 4hich emp!oyees ta,e orders or parts rom
customers.
8he data re5uirements are summari:ed as o!!o4s7
8he mai! order company has emp!oyees identiied "y a uni5ue emp!oyee
num"er9 their irst and !ast names9 and a :ip code 4here they are !ocated.
3ustomers o the company are uni5ue!y identiied "y a customer num"er. Bn
addition9 their irst and !ast names and a :ip code 4here they are !ocated are
recorded.
8he parts "eing so!d "y the company are identiied "y a uni5ue part num"er.
Bn addirion9 a part name9 their price9 and 5uantity in stoc, are recorded.
Orders p!aced "y customers are ta,en "y emp!oyees and are given a uni5ue
order num"er. Each order may contain certain 5uantities o one or more parts
and their received date as 4e!! as a shipped date is recorded.
a. 3reate a ()' representation o the data (you shou!d invent your o4n data
instances).
". +rite a D8D / ()' -chema speciication or the ()' document
constructed in part a.
c. +rite expressions in (.uery to ans4er o!!o4ing 5ueries7
i. *etrieve the names o parts that cost !ess than K#<.<<.
ii. *etrieve the names and cities o emp!oyees 4ho have ta,en orders or
parts costing more than K1<.<<
iii. *etrieve the pairs o customer num"er va!ues o customers 4ho !ive in
the same :ip code.
iv. *etrieve the names o customers 4ho have ordered parts on!y rom
emp!oyees !iving in the city o +ichita.
v. *etrieve the names o customers 4ho have ordered a!! parts costing !ess
than K#<.<<.
vi. *etrieve the names o customers 4ho have not p!aced a sing!e order.
vii. *etrieve the names o customers 4ho have p!aced exact!y t4o orders.
d. Design a re!ationa! schema to pu"!ish this data.
#. 3onsider the grade "oo, data"ase in 4hich instructors 4ithin an academic
department maintain scores/points o"tained "y individua! students in their c!asses.
8he data re5uirements are summari:ed as o!!o4s7
-tudents are identiied "y a uni5ue student id9 their irst and !ast names9 and
an emai! address.
8he instructor teaches certain courses each term. 8he courses are uni5ue!y
identiied "y a course num"er9 a section num"er9 and the term in 4hich they
are taught. 8he instructor a!so assigns grade cutos (examp!e O<9 N<9 M<9 and
2<) or !etter grades A9 B9 39 D9 and = or each course he or she teaches.
-tudents are enro!!ed in courses taught "y the instructor. Each course "eing
taught "y the instructor has a num"er o grading components (such as mid%
11
term9 ina! exam9 pro$ect9 etc.). Each grading component has a maximum
num"er o points (such as 1<< or 1<) and a 4eight (such as #<Z or 1<Z). 8he
4eights o a!! the grading components o a course usua!!y add up to
1<<.=ina!!y9 the instructor records the points earned "y each student in each o
thegrading components in each o the courses. =or examp!e9 student 4ith
id?1#&0 earns N0 points or the grading component mid%term or the course
3-c #&1< section # in the a!! #<<1 term. 8he mid%term grading component
may have "een deined to have a maximum o 1<< points and a 4eight o #<Z
o the course grade.
a. 3reate a ()' representation o the data descri"ed (you shou!d invent your
o4n data instances).
". +rite a ()' -chema / D8D speciication or the ()' document constructed in
part a.
c. +rite expressions in (.uery to ans4er the o!!o4ing 5ueries7
i. *etrieve the names o students enro!!ed in the [AutomataX c!ass in the
term o =a!! 1OO2.
ii. *etrieve the -BD va!ues o students 4ho have enro!!ed in 3-c##2 as
4e!! as 3-c##M.
iii. *etrieve the -BD va!ues o students 4ho have enro!!ed in 3-c##2 or
3-c##M.
iv. *etrieve the names o students 4ho have not enro!!ed in any c!ass.
v. *etrieve the names o students 4ho have enro!!ed in a!! courses in the
cata!og ta"!e.
d. Design a re!ationa! schema to pu"!ish this
Scheme "# E+/-$/t%"&
'a" carries tota! o 1<< mar,s and its distri"ution is given "e!o4.
Periodic Eva!uation( +ee, 1 \ N)7 0N )ar,s ]0 U 1#(*eport7 2; Execution72)^
JBJA7 1# )ar,s
'a" 8est 7 0< )ar,s
%%%%%%%%%%%%
8ota!7 1<< )ar,s
%%%%%%%%%%%%
.e#ere&ce,
]1^ -i!"erschat:9 Horth and -udarshan9 PData"ase -ystem 3oncepts9 -ixth
Edition9 )cAra4 Hi!!9 >L
]#^ Bvan Bayross9 P-.!9 P'/-.'Q BPB Pu"!ications &
rd
*evised Edition
]&^ Cohn Ado!ph Pa!ins,i9QOrac!e -.' and P'/-.' Hand"oo,Q9 #<<&
Pearson Education

12

Вам также может понравиться