Computing - Databases Flashcards

1
Q

What is a database?

A

A store that is:
Persistent (held on permanent storage)
Related (all bits of information related to each other)
Organised (stored in structured predictable way)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

In what 3 ways can a database be viewed at?

A

External
Conceptual
Physical

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is external view?

A

This is what the user sees and is designed to be useful for a particular job

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is conceptual view?

A

This shows how the data and tables are organised and linked

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is physical view?

A

The code that shows how the data is actually stored

Designers and users of the database don’t see this

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the 2 ways that you can construct a database?

A

Flat file

Hierarchical

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the difference between a flat file database and a hierarchical database

A

Flat file is a single table that is set up like a spreadsheet
Hierarchical is when items are linked like branches in a tree instead of an organised table

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the most commonly used database language?

A

SQL

Structured query language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a DBMS?

A

A database management system is a system that provides the software tools to create, maintain and interrogate a database

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What 7 things must a DBMS do?

A

Allow data sharing
Allow multiple user access
Allow multiple application to work on them
Hold only one copy of the data
Make it possible to change data without changing applications
Provide multiple views
Present different users with data in different ways

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the ACID test?

A

All database transactions must be:
Atomic (change is completely performed or not at all)
Consistent (must take a database from one consistent state to another)
Isolated (should not be visible to any other user or transaction until it is completed)
Durable (when a change is made, it must not be lost due to a subsequent failure)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is referential integrity?

A

Different applications must not cause conflicts meaning records are locked to other applications while one application is using it

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are relational databases?

A

Database with multiple tables that are linked to reduce data redundancy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is data redundancy?

A

The storing of the same data in multiple locations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are entities?

A

Something in the real world that some data is about

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are attributes?

A

Something that describes an entity (eg. last name)

17
Q

What is the difference between a field and a record?

A

A field is like a cell in a spreadsheet, it contains a single attribute
A record is often a row in a table, it contains all of the attributes about an entity

18
Q

What is the difference between a primary key and a foreign key?

A

A primary key is a field that is chosen to be unique for that record (usually a reference number)
A foreign key is a field that is not unique but links to a primary key in another table

19
Q

What are forms?

A

Screen designs that present only the data the user needs

20
Q

What are queries?

A

Used to link tables and extract the data required for some purpose

21
Q

What is a boolean expression?

A

A value that can be only true or false

22
Q

What are reports?

A

An output from a database due to what the user needs

An example of an output is a spreadsheet or text document

23
Q

What are modules?

A

The units of code that have been written by the user in a DBMS