1.3.2 Databases Flashcards

(14 cards)

1
Q

List common data types stored in databases

A
  • Text
  • Currency
  • Date
  • Time
  • Integer
  • Real
  • Boolean
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a primary key?

A
  • A unique identifier that is used to identify a specific record in a table.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a composite key?

A
  • A unique identifier comprised of two or more values
  • These values may not be unique themselves but they make up a unique combination in the table.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a foreign key?

A
  • A primary key that is stored in another in a field of another table which is used to make links between tables.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a table comprised of?

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

How can data be collected for a database?

A
  • User inputs through forms which are given to automated queries.
  • Manual entries called ad hoc queries
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is data redundancy?

A
  • Duplication of data or unnecessary data is stored in a database
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a flat file database?

A
  • All data is stored in a single table
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a relational database?

A
  • Data in the database is stored across multiple tables which are linked using foreign keys.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is data consistency?

A
  • Data can only be added or changed a query follows a specific set of predefined rules such as constraints or triggers.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is logical data independence?

A
  • The ability to adapt logical aspects of a database without affecting the database applications.
  • e.g adding/removing entities, changing or removing relationships.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is physical data independence?

A
  • The ability to adapt physical aspects of a database without affecting the database applications.
  • e.g. changing the device the database is running on.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is data integrity?

A
  • Ensuring that the accuracy, completeness and consistency of the data is reliable.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is referential integrity?

A
  • Ensuring that if a foreign key is added to a foreign key field, there is a corresponding primary key in the table that the foreign key field is linking to.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly