Databases Flashcards

1
Q

What is an entity?

A

A table in a data base

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

What is a field?

A

A column on a table

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

What is a primary key?

A

The field which uniquely identifies every record in the entity

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 in a different entity

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

What are the possible relationships between entities?

A

One-to-one, one-to-many and many-to-many

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

What is data validation?

A

This is what makes sure data is sensible, reasonable, complete and within acceptable boundaries

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

What is range check?

A

It is used for numbered data and it allows you to set suitable boundaries

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

What is type check?

A

This is what makes sure the correct type of data has been entered into the field (e.g. String, Date, Integer etc.)

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

What is “check digit”?

A

This checks a range of numbers to see if they have been entered correctly. This is usually for barcodes or ISBN numbers.

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

What is length check?

A

This makes sure that the length of your data is correct. E.g. sometimes you need exactly 11 numbers (for phone numbers).

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

What is “lookup”?

A

When you have a field which can only contain a limited list of items then a lookup is used to improve accuracy.

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

What is picture/format check?

A

It is for when you have data which always consists of the same pattern. The format/picture check checks whether the data inputted fits the pattern.

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

What is presence check?

A

It is when there is a field which cannot have any blank entries. The presence check checks whether something has been entered for each box.

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

What is SQL?

A

It is the Standard Query Language used by database programs

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

In SQL, what does SELECT do?

A

It extracts records from an entity without modifying them

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

In SQL, what does the * mean?

A

It is the symbol for all records

17
Q

In SQL, what does FROM do?

A

It specifies which entity the data should be taken from

18
Q

In SQL, what is WHERE used to do?

A

It is used to make sure only data which fits a certain criteria is extracted

19
Q

In SQL, what is WHERE followed by?

A

A logical condition which must result in either true, false or null.

20
Q

In SQL, what are the main comparison conditions? (give symbols)

A

Equal to (=), not equal to (!=), greater than (>), less than (=) or less than or equal to (<=)

21
Q

In SQL, what are logic operations used for?

A

They allow more than one field at a time to be used to extract certain records

22
Q

What is an entity relationship diagram?

A

It is a diagram which describes the relationships between different entities

23
Q

In SQL, what are some examples of logic operations?

A

And, or, not

24
Q

Give the 6 main data types in a database and their properties.

A
  1. Numeric (can only hold numbers (0-9))
  2. Date/time (can only hold date (dd/mm/yyyy) or time (hh:mm:ss))
  3. Boolean (can only hold true or false)
  4. Binary (can only hold 1 or 0)
  5. Varchar (variable data length, most commonly used with specific data sets like ASCII. This is defined during setup)
  6. String
25
Q

What is DBMS? Give examples.

A

Database Management System; the software package that manages data. Examples include MS Access.