Assignment - DBMS
Assignment - DBMS
Aeslgnment #1
dalalpasto lochnl7
onnev on goma behind-tho-scooW UW o
n wio a lwo pAqo (doublo-#pacerd) wGlal yl n U
aanonmont I8 to oxaming how daluhanos ha
you daly ile. "Tho yoa) of thus MiS
Sugues in vour eunay. >or mmny 14 l63ij618 y"
q^a 00nuo for ho MCale. Addrena the(ollowing
briely how you carng up wilh your (/44117 1
ot havo concrolo inlormation: for theae exnlain
rough)enimato.
B. You are required to note down all the class assignments dictated in the class during the lectures
and complete them, You will be asked to submit along with the next assignment due.
Cssayi Yehnduseeees
a baes
fpliahons we
oeidy
Le4dvice
Keobil af.
Ralabase Abiaton
by cuians,
Condlr atabas a
ides
tu dmvia uovian ss atabau o moto
olie-foungu aintrahons 2
ofatou Manag
tiniu aules.
Poda stoud in
data bau &toes a vauchy dada nelu ding
deteila nelud
ay auouut. aps dala ecoyds ta teeuly tao
keu
lorotas.
lsy n both
abo
aguiat
itial an
nauthoriud accaus. Rediabiy vd
yhout
Rata baus : Teehnalgy
abna od cadaba 'ana gemut sy teis weuld
dud do ieiuimis , dlay "and a
making demalus enfeiena
-to ss
-Tuhon tau_ Conuhad moduling'
stet sudues eukanes
Conmunicahin anoy stakekstdus puorids achay
klufuit for
- Daka odel e ta hienihy'
Mo dl uind dlata
Actueval
chulabane.
(OddSemester202
(MCAIII)
Syslem
Munagement
Dalabase
to aody
- Rale fo ta abibty ti afliabos
in demu
dfn setuuaclhout echigdna by afanating
Data
-ttu doda
bau dluka idfn
deta
DBMS
shutu
DBA!:
tuiging
bueferonce umbu usues
ansunt o
Amigs ment 2
Datahe Munameal System (MCA 111)
044 Semester 2424-25
Ilanded (yt un: 20 Avzoss 224
De: September 27, 2W24
ER Prastks Probßems
Dre an Rdagram fo cah prblem that calures their
Probem informatim rUquirenIms.
ionreTty datzhae otais informalin zht
amhcn arkd courcs (idcrtifed to creid) profewrs (identifcd by xial urAy
Profewrs twzch unrS, cach the
olkr tfig stuatkons CoKEIn the 1exte relatsnhip 4, kor ch sitvsn, draw n :k
Prolcors can tcach the seme coure in everal emesters, 2rd cach offering mu
rcsrded.
2 ProlcKors can tcach the same coure in everal semeters, and only the
such ofleríng nceds to be rccordcd. nMyA rc1
3. lscry profcor tcchs eKAly ong CAMIE (n
mre, ) less)
4. tvcry professor tcches cKxtly one coure (x more, no
ks). and cvery u r muM
be taught by some professot.
Problem 2
Profeswrs have an SSN. nae, an ayE, rank, and a reearch specialty.
Projccts have a project number. a sponsos nane (e.g. NSE), a starling date, an
date. znd a budyct. ending
Graduate tudents have an SSN, a rame, an age, znda degree
proyyam
Fach projcct is managed by exactly one professor (krown as Pi)
tach project is worked in by one or more professors (known as Co-Pls)
lach proect ís worked on by onc or more graduate students (known as
RAS) When
graduate studets work on a project, a prolcssor must supervÍe their work on the
project, Graduate students can work on mutiple projccts, in which case they will have
a potentially different supervisor for cach project.
Departments have a department number, a department narnc, and a main office.
Deparl1ncnt has a professor (knovwn as Chairman) who runs the department.
Professors work in one or more departments, and for each department that they
work
in. a time percentage is asociated with their job
Graduste students have one major department in which they sre working on thcir
dcgrcc.
" lach graduate student must have another, more enior
graduate sludent as an adviwr.
Problem 3
company database nccds to store in•ormation aboul employees (identified by ssn, with salary
A
and phonc as attríbutes), departments (identificd by dno, with dname and budget as altributes),
and children of employccs (with namc and age as attributes). E:mployccswork in departments:
cach departmcnt ís manayed by an employec: a child musl be identificd uniquely by name
when the parent(who is an cmploycc; assune thal only onc parent works lor thecompany )iv
known,
Problem
product fur art galleries. The corc ol (his
Tou sel up a databse company, ArBase that builds a that gallerics nçcd lo
mduct is adatabuse vith aschema Ihal cuntures all thc inlormation
maintain.
Clerics keep inlomation about artists thcir names (which are uniquc), birthplaces, agC. and
NIS C ol art. For cach picce of artwork, the ariist. the year it was made, its uniquc tille, ls lype
lithograph, sculpturc. photograph), and its price must be storcd. Picces ol
at ane painting,
arnorh also classilicd into proups ofvarious kinds. lor cxamplc, porlrails, still liles, works
rcaN, Or worhs of the 19th centur:a eiven picce may belong to more than one group.
Tachgroup is identilficd by a name (like those just given) that describes the Broup :
galeries keep information about customers. For cach customer, gallerics kcep thal person s
uniquc name, address, total amount of dollars spent in the gallery (vcry importanl:), and tne
artists and groups of art that the cuslomer tends to likc.
Draw the l:R diagram for the database.
Problems
Notown rccords has decided lo store information on musicians who perform on thcir albuns
(as well as other company data) in a database. The company has choscn to hirc you as a
databasc designcr.
Fach musician that records at Nolown has an SSN, a namc, an address and a phonc
number. Poorly paid musicians ofien sharc the same address, and no addrcss has more
than onc phonc.
Fach instrument that is used in songs recorded at Nolown has a name (e.g. guitar,
synthesizcr. flutc) and a musical key (c.g., C, B-Ilat, F:flat).
Each album that is rcorded at the Nolown label has a title, acopyright datc, a format
(c.g.. CD or MC) and an album identifier.
lach song recordcd at Notown has an id, tille and an author.
Each musician may play several instruments, and agiven instrumcnt may be playcd by
several musicians.
Each album has a number of songs on il, bul no song may appcar on morc than onc
album.
" lach song performcd by onc or morc musicians, and a musician may perform a
number of songs.
. Iach album has cxactly onc musician who acis as ils produccr. A
scvcral albums.
producer may produce
Semtens teocty
Aeneid)
Conseid
Couss
Consid
Sensts
bemid
evacy
Cowseid
Heachus Couss
Senurts dmid
Hearkus
Cowss
Semsteny
Aemid
hod
CAank
dnane
KManag
þid
duate
Gou (budgt
deg-uoy
btat-date)
(end-date
Beier
hame Hdviser
budgt
Photln 3
dame
(phon
dho
(salany brdhet
chitd
nae
Cwlid
toCums
addum
ham
KAike-nti
name
Hahiot. (ag
(dhyle(bitfplou)
Painta
uotlm s
(Phenno
addus
<Home
name
Cud
albumid
Plays
Songs
tnsid
Auy
nanie