entities and attributes

6

Upload: forrester-high-school

Post on 10-Jan-2017

395 views

Category:

Education


0 download

TRANSCRIPT

Page 1: Entities and attributes
Page 2: Entities and attributes

EntitiesAn entity represents a person or an object, or something abstract.

Page 3: Entities and attributes

AttributesEach entity has a set of attributes that describe examples or instances of that entity.

Page 4: Entities and attributes

NotationThe entity name should be written in capital letters, and in singular. The attributes should follow in a bracketed list.

PersonPUPIL (candidate_number, forename, surname, dob, tutor_group)

ObjectCAR (registration_plate, make, model, colour)

AbstractDOCTOR APPOINTMENT (date, time, consultant, location)

Page 5: Entities and attributes

DatabasesEntities and attributes are part of the data modelling process. When moving from data modelling to implementation:

Entities become tables in a databaseAttributes become fields in a database

PUPIL (candidate_number, forename, surname, dob, tutor group)

Pupil

Page 6: Entities and attributes

DatabasesEntities and attributes are part of the data modelling process. When moving from data modelling to implementation:

Entities become tables in a databaseAttributes become fields in a database

CAR (registration_plate, make, model, colour)

Car