DATABASES Flashcards
What is a DB
persistent and structured collection of data
What is a record
Single unit in a database, made up of fields (name ,Id,etc)
What is a transaction
Change in state of a database
What is transaction file
A file of events
What is a master file
Principal file that stores basic details about a business (eg supermarket stock)
What is a flat file database
One table in the database, no other tables
What is a entity
Any thing represented in a database like a student or bag
What is a relational database
Database with one or more tables with unique keys to provide a relations between data
What is a tuple
Same as record
What is a primary key
Unique key to a row
What is a foreign key
A field repeated from another table
What is a secondary key
Additional key used with the primary key to locate a piece of data, narrowing down the data. It’s not unique but it is unique to a smaller number of fields making the search possibly faster
What is data redundancy
Unnecessary repeated data
What is database normalisation
Where collection of data is gradually (in 3 steps) organised into tables to remove data redundancies
Requirements for 1NF
No duplicate columns
Has primary key
Data is atomic