Database Design & Development Flashcards
Flat File Database
All data is stored in a single table. Results in duplication of data that wastes storage space and causes modification anomalies.
Relational Database
Database composed of several linked tables/entities.
Record occurrence
This is data held on one particular thing or person, e.g. information on a single employee.
Field/attribute
A heading/name of an item of data in a record
Primary Key
A field that uniquely identifies a record in a table
Foreign Key
This is a primary key in another table. This allows two tables to be connected.
Validation
This can be applied to fields in the design of a database to allow only certain data to be entered
Length Check
This ensures that data can only be a certain number of characters long.
Range Check
This will ensure that the user is entering data between certain specified values.
Restricted Choice
This means the user can only enter data from within a list. Created by a lookup list. FOREIGN KEY must have this.
Presence Check
This checks whether the data exists. This means the user may not enter a null value into the field. PRIMARY KEY must have this.
Sort
To put a field/s in order of ascending/descending.
Compound Key
When two are more fields that are primary keys in other tables are used to create a primary key.
Data Dictionary
Shows the structure of the database. This is part of the design stage.
One to One
This type of relationship indicates when there is a single item in one table linked to another singular item in another table.
One to Many
This type of relationship describes one item of one table being linked to multiple items in another.
Many to Many
This type of relationship describes multiple items from one table being linked to multiple items in another. You should avoid these.
Wire Framing
This is the general method employed to design the user interface for software.
SQL
Structured Query Language. A special-purpose programming language designed for managing data held in a database.
SQL SELECT statement
Used to retrieve data from tables in a database
SQL INSERT statement
INSERT INTO usedcars (model,price,year) VALUES (“Fiesta”,9,999,”2018”)
SQL UPDATE statement
used to make changes to existing records within a table UPDATE usedcars SET price=29995.00 WHERE year=’2014’
SQL DELETE statement
used to remove records from a table DELETE FROM usedcars WHERE year=’2014’
Wildcard
A special character that represents other unknown characters in a search. Eg. % (* in Access), _ (? in Access)
aggregate function
Performs a calculation on a set of values and then returns a single value. Eg. MIN, MAX, COUNT, SUM, AVG
GROUP BY Function
Function that tells SQL how to segment the data that is selected
ORDER BY
A SQL clause that is useful for ordering the output of a SELECT query (for example, in ascending or descending order).
Entity Relationship Diagram (ERD)
A technique for documenting the relationships between entities in a database environment
Entity Occurrence diagram
A diagram that helps to identify the cardinality between entities
cardinality
A description of the relationship between entities. one-to-one, one-to-many, many-to-many
SQL Aliases
Used to give a database table, or a column in a table, a temporary name.