1Whats the purpose of ACID?
TO ensure data integrity, guarantees transactions are processed reliably.
2What are the words in ACID?
ATOMICITY CONSISTENCY ISOLATION DURABILITY
3ATOMICITY?
A transaction must be processed in its entirety or not at all,
4CONSISTENCY?
A transaction must not violate any of the defined validation rules(including referential integrity)
5ISOLATION?
Simultaneous executions of transactions should lead to the same result as if they were executed one after the other,
6DURABILITY?
Once a transaction has been committed it will remain so regardless of the circumstances surrounding it, such as in the event of a power cut.
7WHAT UIS REFERENTIAL INTEGRITY
It means that no foreign key in one table can reference a non-existent record in another related table
8HOW TO GET TO 1ST NORMAL FORM(1NF)
1) All field names must be unique
2)Values in fields should be of same type.
3)Values in fields should be atomic.
4)No two records can be identical
5)Each table needs a primary key.
9HOW TO GET TO 2ND NORMAL FORM(2NF)
1)Data is already in 1NF
2) Any partial dependencies have been removed(remove any many to many relationships formed)
10WHAT IS partial dependencies?
Its when a field only partially depends on the primary key.
11How to fix many to many relationships.
1) Create a linking table
2) Assign the primary keys from the two tables to the linking table as composite key.
3) Flip the many to many arrows to become two separate one to many arrows.
12HOW TO GET TO 3RD NORMAL FORM
1) Data is already in 2NF
2) Remove any transitive dependencies
13What is transitive dependencies
It is when the value of a field can be determined by another field which is not the primary key
14What is redundancy?
Duplicate data in another hardware that mirrors every transaction and takes over as backup
15What is record locking
Prevents simultaneous access to records in databases to prevent updates being lost or inconsistences occurring.
16WHAT IS SQL?
It is a declarative language used for fast CRUD in databases.
17How to use LIKE
WHERE name LIKE "A%"
18HOW TO INSERT NEW RECORD DATA
INSERT INTO <table name> (<field1>,<field2>)
VALUES(<value1>,<value2>)
19HOW TO DELETE RECORDS
DELETE FROM <table name>
WHERE <field name> = <condition>
20HOW TO JOIN TABLES . You specify the fields you want to join(foreign keys)
JOIN <table name1>
ON <tablename2>.<field2> = <table name1>.<field1>
21HOW TO DROP TABLE
DROP TABLE <table name>
22ways to capture data
-manual
-OCR(character)
-OMR(mark)
- barcode readers
23formats used for exchange of databse info
XML and JSON
24methods of exchange
manual methods like memory sticks
EDI used for automatic exchange of data between computers.
25DBMS?
database management system used to make transactions reliable and for data integrity