Databases Flashcards
What is the purpose of a data base?
Used to store data in a structured format
Query
A search or question performed within a data base
Flat File Database
All data stored on a single table
Relational Data Base
Data stored on more than one table and linked using key fields
What is a link between different tables called?
Relationship
One to one
One to many
Many to many
Foreign Key
Link to a primary key in a relational database table
What are the advantages of a relational data base?
-Data entered into database only once
-Mistakes less likely to happen
-Duplication avoided so file size smaller
-Queries can be performed
-Reports can be generated
merge sort
The list is repeatedly divided into two until all the elements are separated individually. Pairs of elements are then compared, placed into order and combined. The process is then repeated until the list is recompiled as a whole.
compiler
A compiler translates an entire program into machine code before execution.
Don’t need source code
Java and C++ are examples of compiled programming languages.
interpreter
Each time the program is run, an interpreter translates the code into machine code, instruction by instruction.
Always need source code
Interpreter languages include JavaScript, PHP, Python and Ruby.
Characteristics of low level languages
Specific
Take up less space as file sizes are usually smaller
Direct - doesn’t have to go through translator or interpreter
Characteristics of high level languages
Less code needs to be written from scratch (libraries)
More readable and easier to find errors
More people know high level languages