What is a database table also known as?
An entity or file
What is a record in a database? What are they also know as?
Records are the rows in a table
Known as rows/tuples
What are fields in a database? What are they also known as?
Fields are the columns of a table
Also known as columns or attributes
What is a flat file database?
One that only contains one table
What methods are there of inputting data to a database?
What methods are there of retrieving data from a database?
What methods are there of modifying data?
What are the methods of exchanging data?
For recording data to transfer:
- XML, JSON
- comma separated values (CSV) in a notepad file
For exchanging files:
- memory stick, email etc. (Physical methods)
- Electronic data interchange (EDI), a protocol allowing two databases to interface
What are the principles of 1NF?
What are the principles of 2NF?
What are the principles of 3NF?
What is data integrity?
Ensuring the database contents are the same for all users
What is referential integrity?
Ensuring data is consistent between fields in a relationship
What is database atomicity?
Database transactions must be fully completed or not at all
What is database consistency?
A change in the database must be retained by the database
What is database isolation?
A transaction must not be interrupted by another transaction, it must occur in isolation ensuring other users cannot access the data
What is database durability?
Once a change has been made, it must not be lost due to a hardware fault
How would you do a join in SQL?
Select table1.data table2.data
From table1
Join table2
On table1.foreignkey = table2.primarykey
Where table1.field = condition