database and design Flashcards
what is a field
a field is a single piece of information; e.g. the name of a pupil (can be text,number,boolean,date,time)
what is a record
a record is all the information related to one item, object or person.
what is a table
a table is a collection of records
what is a flat file database
a flat file database is a database made up of one table of data
what is a relational database
a relational database is one that contains two or more linked tables of data these links are called relationships
relational databases prevent what
data duplication
what is an entity
an entity is a person, place, thing, event, concept that data is to be stored on in a school database entities might include CLASS, PUPIL, TEACHER (table names)
what is an entity occurrence
entity occurrence is a specific example of an entity. each row in a database contains information describing one entity occurrence
what is an attribute
an entity is described by attributes. attributes become Collums (fields)
An attribute is a single piece of information about that entity
what is an entity in terms of attributes
an entity is described by attributes. attributes become Collums (fields) imagine a pupil entity, it would have attribute of DoB and Grades (field names)
what is a primary key
a primary key is a field that uniquely identitfies one record (or entity occurance)
what is a foreign key
a foreign key is a field that is linked to another tables primary key. e.g. a primary key used in another table to link the two tables. any value in the foreign key should match that of the primary key in the other table
what are end user requirements
the end users are the people who are going to be using the database
their requirements are the tasks they expect to be able to do whilst using the database for example: preforming searches
sorting a database or using the database to preform calculations
what are functional requirements
functional requirements are the processes and activities that the database has to perform in order to meet the end user requirements
it will also need to reference the information that the system has to contain to carry out its functions
what is cardinality
cardinality is the relationship between tables including one to one relationships and one to many relationships
what is a compound key
a compound key is a primary key that comprises of two or more attributes with each of these attributes being primary keys themselves and is used to link many tables