Exchanging data Flashcards
(104 cards)
What are databases (flat file and relational, not MS)
Databases are structured persistent storage, and can either be flat file (such as CSV) where all data is stored in a single file, or it can be a relational database (more than one table connected together using relations created by pk’s and fk’s)
State properties of flat file (compared to relational)
May have redundant data
Harder to update
No specialist knowledge needed to operate
Searching is slower as there is more data
More difficult to manage and possibly expand in the future
State properties of relational (compared to flat file)
Data integrity
Linked tables
Easier to change format
Provides security features
More expensive (DBMS needed)
Specialist knowledge needed to operate (e.g. normalisation)
Primary key
A primary key is a field that has a unique value / a unique identifier (1) for every record in that table (1)
How can a PK be used as a FK?
Primary key in one table…
…used as an attribute / foreign key in
another
Provides a link between tables
Represents many-one relationship
Composite primary key
A composite primary key is when two attributes in a table are combined and used as the primary key
Foreign key
A field/attribute that links to a (primary) key in a second table (1)
Secondary key
A secondary key is an indexed attribute/field
Result of indexing attribute/field
Indexing a field/attribute allows for searches of the field to be performed quicker (1), but the index takes up extra space in the database (1)
Conditions for 1NF
No repeating fields/data
Data is atomic
Has a primary key
Conditions for 2NF
Is in First Normal Form
Every field is dependent on the primary key
Conditions for 3NF
Is in Second Normal Form
No transitive dependencies
Referential integrity
– Ensuring that changes are consistent across a database (1)
– If a record is removed all references to it are removed (1)
– A foreign key value must have a corresponding Primary key value in another table (1)
ACID
Atomicity - a transaction / review can only be fully complete or not complete / cannot partially complete (1)
Consistency - all validation rules in the database must be followed
Isolation - transactions are processed concurrently in such a way that the result would be the equivalent to them being processed sequentially
Durability - once a transaction is processed it is saved to storage, cannot be lost
Record locking
allows one user/process to access/modify record level data at any one time (1)
Database redundancy
When a database is copied/backed up (not data redundancy)
Capturing data (textbook)
Optical mark recognition (OMR) - A data input method that recognises the positions of marks made on paper
Optical character recognition (OCR) - A data input method that converts images of text to machine editable text
What is DBMS? (textbook)
-Database management system
-Layer of software between database and person/program using it
-Ensures consistent manipulation of software, ensuring integrity and security
Data selection and management (textbook)
Structured Query Language (SQL), a language used to find and manipulate data within a database
Query by Example (QBE).
Exchanging/transmitting data (textbook)
Preferable to use standard data format:
-SQL, structured query language
-CSV, Comma-separated value
-XML, eXtensible Markup Language
-JSON, JavaScript Object Notation
What is LAN?
-A group of devices/computers connected over a small geographical area
-Uses connections owned by the organisation that owns it (the LAN?)
-Stands for local area network
-Use of hard wiring/wireless communication
Advantages of LAN (at least 4)
communication between machines/workers
any machine can be used
easier to maintain software/files
sharing of peripherals/data
monitoring of workers
simplifies backup procedures
What is WAN
- Wide Area Network
- Collection of connected computers/devices over a large geographical area
- Often using 3rd party communications
channels / connections
Disadvantages of WAN
Less secure than LAN
- Cambridge
- Imperial
- UCL
- Cambridge
- Imperial
- UCL
This is a Heading
This is a paragraph.