1.3.2. Databases Flashcards
What is a relational database?
a database that recognises the difference between entities and uses different tables for each entity
What is an entity?
an item of interest which information is stored about
What is a flat file?
a database that consists of a single file, usually about one entity
What is a primary key?
a unique idetifier for each record in a table
What is a foreign key?
the attribute which links 2 tables together
What is a secondary key?
an index, other than the primary key, used to search and sort through the database with more convenience and speed
What is normalisation?
the process of designing the best layout for a relational database
What 4 things does normalisation try to accomplish?
- reduce reduncancy 2. make data consistent throughout linked tables 3. records can be added and removed without issues 4. allows complex queries to be carried out
What is an index?
a data structure used to search and access data in a database quickly
Is the primary key automatically indexed?
yes
What is the defenition of capturing data?
the process of obtaining the information you wish to use
What method do banks use to capture data from cheques?
they use MICR to get all of the details apart from the amount which must be entered manually
What does selecting data mean?
the process of reducing excess information to obtain only the data you require
What does managing the data mean?
manipulating the information in any of way, such as sorting or selecting certain parts using SQL
What is the most common language used to manipulate data in databases?
SQL
What are the requirements to be in first normal form?
there must be no attribute that contains more than a single value in a cell
What are the 2 requirements to be in second normal form?
- the database is in first normal form - there are no partial dependencies (no composite keys)
What are the requirements to be in third normal form?
- the database is in second normal form - there are no key dependecies
What does SQL stand for?
structured query language
What is SQL?
a declaritive language used to manipulate databases
What is referential integrity?
the process of ensuring consistency as it makes sure that information is not removed if it is required elsewhere in a linked database
What is a transaction defined as?
a single operation executed on data
What does ACID stand for?
atomicity consitency isolation durability
What does atomicity (in ACID) mean?
a transaction must be processed in its entirety or not at all