vce it theory slideshows - ita
DESCRIPTION
Entity Relationship Diagrams (ERD). VCE IT Theory Slideshows - ITA. By Mark Kelly [email protected] Vceit.com. This is the VCAA sample ERD, published at http://www.vcaa.vic.edu.au/vcaa/vce/studies/infotech/it-applications/publications/IT-Apps-samp.pdf. ENTITY. ENTITY. RELATIONSHIP. ENTITY. - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: VCE IT Theory Slideshows - ITA](https://reader035.vdocument.in/reader035/viewer/2022062809/56815a17550346895dc75fd5/html5/thumbnails/1.jpg)
VCE IT Theory Slideshows - ITA
By Mark [email protected]
Vceit.com
Entity Relationship Diagrams(ERD)
![Page 2: VCE IT Theory Slideshows - ITA](https://reader035.vdocument.in/reader035/viewer/2022062809/56815a17550346895dc75fd5/html5/thumbnails/2.jpg)
This is the VCAA sample ERD,published at
http://www.vcaa.vic.edu.au/vcaa/vce/studies/infotech/it-applications/publications/IT-Apps-samp.pdf
![Page 3: VCE IT Theory Slideshows - ITA](https://reader035.vdocument.in/reader035/viewer/2022062809/56815a17550346895dc75fd5/html5/thumbnails/3.jpg)
![Page 4: VCE IT Theory Slideshows - ITA](https://reader035.vdocument.in/reader035/viewer/2022062809/56815a17550346895dc75fd5/html5/thumbnails/4.jpg)
ENTITY
![Page 5: VCE IT Theory Slideshows - ITA](https://reader035.vdocument.in/reader035/viewer/2022062809/56815a17550346895dc75fd5/html5/thumbnails/5.jpg)
ENTITY
RELATIONSHIP
![Page 6: VCE IT Theory Slideshows - ITA](https://reader035.vdocument.in/reader035/viewer/2022062809/56815a17550346895dc75fd5/html5/thumbnails/6.jpg)
ENTITY
ATTRIBUTE
RELATIONSHIP
![Page 7: VCE IT Theory Slideshows - ITA](https://reader035.vdocument.in/reader035/viewer/2022062809/56815a17550346895dc75fd5/html5/thumbnails/7.jpg)
ENTITY
ATTRIBUTE
RELATIONSHIPKEY FIELD
![Page 8: VCE IT Theory Slideshows - ITA](https://reader035.vdocument.in/reader035/viewer/2022062809/56815a17550346895dc75fd5/html5/thumbnails/8.jpg)
In the real world, primary field
names are often underlined.
In the real world, primary field
names are often underlined.
![Page 9: VCE IT Theory Slideshows - ITA](https://reader035.vdocument.in/reader035/viewer/2022062809/56815a17550346895dc75fd5/html5/thumbnails/9.jpg)
Reading the ERD
A Teacher
![Page 10: VCE IT Theory Slideshows - ITA](https://reader035.vdocument.in/reader035/viewer/2022062809/56815a17550346895dc75fd5/html5/thumbnails/10.jpg)
Reading the ERD
supervises
![Page 11: VCE IT Theory Slideshows - ITA](https://reader035.vdocument.in/reader035/viewer/2022062809/56815a17550346895dc75fd5/html5/thumbnails/11.jpg)
Reading the ERD
subjects
![Page 12: VCE IT Theory Slideshows - ITA](https://reader035.vdocument.in/reader035/viewer/2022062809/56815a17550346895dc75fd5/html5/thumbnails/12.jpg)
Reading the ERD
Each subject has a name attribute
![Page 13: VCE IT Theory Slideshows - ITA](https://reader035.vdocument.in/reader035/viewer/2022062809/56815a17550346895dc75fd5/html5/thumbnails/13.jpg)
Reading the ERD
The primary key for each
subject is the SubjectID field
![Page 14: VCE IT Theory Slideshows - ITA](https://reader035.vdocument.in/reader035/viewer/2022062809/56815a17550346895dc75fd5/html5/thumbnails/14.jpg)
Reading the ERD
A teacher also supervises
classes
![Page 15: VCE IT Theory Slideshows - ITA](https://reader035.vdocument.in/reader035/viewer/2022062809/56815a17550346895dc75fd5/html5/thumbnails/15.jpg)
Reading the ERD
Students belong to classes
![Page 16: VCE IT Theory Slideshows - ITA](https://reader035.vdocument.in/reader035/viewer/2022062809/56815a17550346895dc75fd5/html5/thumbnails/16.jpg)
But …
• The VCAA sample ERD has NO CARDINALITY• i.e.no indications of
– 1:1– 1:many– many:1– many:many relationships
![Page 17: VCE IT Theory Slideshows - ITA](https://reader035.vdocument.in/reader035/viewer/2022062809/56815a17550346895dc75fd5/html5/thumbnails/17.jpg)
We have to assume…
No cardinality is shown. Can one teacher supervise more than one subject or class?
![Page 18: VCE IT Theory Slideshows - ITA](https://reader035.vdocument.in/reader035/viewer/2022062809/56815a17550346895dc75fd5/html5/thumbnails/18.jpg)
We have to assume…
Can one subject or class be supervised by more than teacher?
This ERD does not say. Use the case study and common sense.
![Page 19: VCE IT Theory Slideshows - ITA](https://reader035.vdocument.in/reader035/viewer/2022062809/56815a17550346895dc75fd5/html5/thumbnails/19.jpg)
Unofficial additions…
The ‘many’ end of a relationship can be shown as “N” or “” …
N
1
![Page 20: VCE IT Theory Slideshows - ITA](https://reader035.vdocument.in/reader035/viewer/2022062809/56815a17550346895dc75fd5/html5/thumbnails/20.jpg)
Unofficial additions…
“Crow’s feet” notation of “many”
“Crow’s feet” notation of “1”
![Page 21: VCE IT Theory Slideshows - ITA](https://reader035.vdocument.in/reader035/viewer/2022062809/56815a17550346895dc75fd5/html5/thumbnails/21.jpg)
Optional Advanced Crowsfeet
If we wished to indicate that a school may enrol many students, or may not enrol any students at all. We also wish to indicate that each student attends exactly one school. This diagram indicates this optionality and cardinality:
SCHOOL
STUDENTEach school enrolls
at least zero
and at most many
students
Each student attends
at least one
and at most one
school
![Page 22: VCE IT Theory Slideshows - ITA](https://reader035.vdocument.in/reader035/viewer/2022062809/56815a17550346895dc75fd5/html5/thumbnails/22.jpg)
The VCAA sample exam question
List the three basic elements of entity relationship diagrams and provide an example of each from the diagram. (3 marks)
![Page 23: VCE IT Theory Slideshows - ITA](https://reader035.vdocument.in/reader035/viewer/2022062809/56815a17550346895dc75fd5/html5/thumbnails/23.jpg)
ENTITY
ATTRIBUTE
RELATIONSHIPKEY FIELD
The answer
![Page 24: VCE IT Theory Slideshows - ITA](https://reader035.vdocument.in/reader035/viewer/2022062809/56815a17550346895dc75fd5/html5/thumbnails/24.jpg)
By Mark [email protected]
These slideshows may be freely used, modified or distributed by teachers and students anywhere on the planet (but not elsewhere).
They may NOT be sold. They must NOT be redistributed if you modify them.
VCE IT THEORY SLIDESHOWS