Chapter 8 : Databases Flashcards
What are the benefits of using DLLs
Executable file is smaller…only loaded to memory when needed
Changes done independently on main program…no need to recompile
One file is available to several applications…saves space
What is a Dynamic Link Library File
Shared library file
Code only loaded to main memory when required of run time
Made available to several applications at the same time
What are the disadvantages of DLL
Malicious changes can install to users computer
Unexpected changes means program stops working as expected
File must be present or else unable to find errors
What are the benefits of using library routines
Code already written…programer saves time
Code used by many people…thoroughly tested
Programmer can use functions they may not know…simplifies program
Conform to industry standards…more robust
What is an entity
An object about which data can be stored
What is a primary key
The unique attribute / combination of attributes used to identify the
record / tuple
What methods can be used to secure a database
Backup / recovery procedures
Use of access rights
Views
Record and table locking(prevents simultaneous access to data to prevent over writing)
Encryption
How do you put a database into 1NF
Identify repeating groups of attributes …
Ensure each field is atomic
Identify the primary key for the table
What is a data dictionary
Stores data about the database like metadata
Field names,Table names,Datatypes
What things are included in defining a table
CREATE TABLE start and end bracket
CREATE TABLE BIRD_TYPE( );
Define Records and datatypes
Name VARCHAR(9),
Set primary key
PRIMARY KEY (BirdID)
Describe how using a relational database has overcome the previous problems
associated with a file-based approach.
- By storing data in (separate) linked tables data redundancy is reduced / data duplication is controlled…
- Compatibility / data integrity issues are reduced as data only needs to be updated once / is only stored once.
- Unwanted or accidental deletion of linked data is prevented as the DBMS will flag an error.
- Program - data dependence is overcome.
- Changes made to the structure of the data have little effect on existing programs.
- Ad-hoc / complex queries can be more easily made as the DBMS will have a query
language/ QBE form.