Please enable JavaScript.
Coggle requires JavaScript to display documents.
3 -Data (3.5 Databases (Entities (What is an Entity? (An entity is a thing…
3 -Data
3.5 Databases
-
Entities
What is an Entity?
An entity is a thing which is recognised as being capable of an independent existence and which can be uniquely identified and about which data can be stored.
-
Identifying Entities
-
In a school management system, the entities that are identified are items such as the student, teacher, subject, and lesson. All these are independent objects about which data can be stored and which are linked to the running of a school, eg. students are taught particular subjects by teachers in lessons.
-
Attributes
-
-
The entity and its attributes are written formally as: ENTITY(attribute1, attribute2, attribute3...)
Eg. STUDENT(first name, surname, DoB, year, tutor group)
Tables
In a database, each entity is represented as a table with the attributes as the columns.
-
Key Field
-
Each record must have a unique identifier to distinguish it from all the other records in the table. This is the key field and must contain unique data.
Relational Databases
-
A relational database allows data elements in one table to be related to any piece of data in another table, as long as both tables contain a common element.
Foreign Key: so that tables can be linked, the primary key from one table can be inserted as a field in another table.
3.1 Binary
Computers use binary to represent data (numbers, text, sound, graphics) and program instructions.
-