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
what is an entity occurrence diagram
an entity occurence diagram is a method of identifying the relationship between entities . it is a tall oval with the entities listed inside and lines are drawn between the entities to show cardinality and relationship
what is an entity relationship diagram
is used to show the enitites and attributes of the database and the relationship between them
what are the 4 types of validation
presence check - checks for presence
restricted choice - usually uses a drop down menu
length check - checks that it is a certain length
range check - checks values are within a certain range
also know look up from
data dictionary
a data dictionary is a design notation for data modelling during the design of the database
a data dictionary includes names and description of the tables and fields and any relationships
what does SELECT command do
The SELECT command is used to choose with feilds to display
What does the FROM command do
the FROM command states where any information used within the query is from
what does the WHERE command do
the WHERE command states conditions that must be met for attributes to be displayed
what is an equi join
an Equi join is used when you need to display fields from related records from linked tables. it is used in the where statement and consists of saying that one tables compound key equals the other