Unit 1.3.2 (Databases)
No description yet. This curated deck is ready for daily study.
Card preview (21)
What are characteristics of a Flat File Database? (4) Hint: Opposite to Relational Database.
• Has a single table • • Harder to update • No specialist knowledge needed to operate • Leads to Data Redundency (same data is repeated unnecessarily multiple times)
What are characteristics of a Relational Database? Remember the one you keep forgetting
• Has linked tables which include primary keys and forgein keys to represent relationships • Requires Specalist Knowledge through the use of SQL to create the data structures -Enforces ACID properties by making sure transactions are processed successfully
What is a primary key? A unique…. Underlined in the…
• Primary Key is a unique identifer in a table. Underlined in the entity description
What’s a foreign key? A ####### key from one table…
• A primary key from one table used as an atttribute in another to link tables/ represent a relationship
What’s referential intregrity? - Every forgein key value must,,,
Every foreign key value must match an existing primary key value in the related table Maintains data consistency across the data base
What is Hashing? A one way, non reversible math…
A one-way, non-reversible mathematical algorithm that converts an input of any size into a fixed length value.
What is a Transaction? Some sort of ####### to the ########. Refers to #######,inserting or ######## data
• Some sort of change to the database. Refers to updating, inserting or deleting data
What does ACID Stand for?
Atomic, Consistency, Isolation and Durablity
What does Atomic and Consistency do? A: A ###### is completely performed or not at ###! C: Ensures no ########## violates any of the defined ########## rules
Atomic - A transaction is completly perfomed or not at all! Consistency- Ensures no transaction violates any of the defined validation rules
What does Isolation and Durablity do? I: ########## happen concurrently, without interferring with ######### D: Once a ######## is finished, its results stay saved in non voliatle storage even if there is a ###### or power #####
Isolation -Transactions happen concurrently without interfering with each other Durablity- Once a transaction is finished, its result stays saved in a non-voilatile storage, even if there is a crash or power loss
What is record locking?
• A technique used in databases to prevent multiple users from editing the same record at the same time. This helps prevent problems like lost updates and keeps data consistent.
What are some characteristics of 1NF? (3) 1. All field names should… 2. Each table needs a… 3. No two records can…
• All field names should be unique • Each table needs a primary key • No two records can be identical
What are some characteristics of 2NF? 1. Must be in… 2. Contains no.. 3. Has a comp…
• Must be in first normal form • Contains no partial dependencies • Has a composite key
What are some characteristics of 3NF? (2). Contains no non…
• Must be in second normal form • Contains no non-key dependencies
What are collisions? When an algorithm generates the same address for… Since two pices of data cannot occupy the same physical space, the…
A collision happens when an algorithm generates the same address for different values. Since two pieces of data cannot occupy the same physical space, the system must use a collision resolution technique
What are the 3 solutions to Collisions? LP… Chaining…LL OA.. OFT
Linear Probing: Stores the hash value in the next free slot in the table Chaining: A record will point to a location in a linked list (Or start one) OverFlow Area: This will point to a Overflow Table where new items can be added, these items can still be accessed
What are Advantages of Hashing? If a hacker steals the dtatabase… Hashing allows direct access ##, meaning…
If a hacker steals the database, they only get the hashes. They cannot reverse the hash back into the original password. Hasinng allows direct access 0(1) This means the time taken to find a record stays the same regardless of the size of the dataset
Define Lossy Compression
Permanently removes non-essential data from the file. The file cannot be restored to its original form, resulting in a permanent loss of quality
Define Lossless Compression
Reduces the file size without permanently removing any data. The original file can be fully reconstructed bit-for-bit, meaning no quality is lost.
Define Symmetric encryption
Uses the same key for both encryption and decryption.
Define asymmetric encryption
Uses two different keys. A public key for encryption.A private key for decryption