Databases Flashcards

1
Q

What are the rows in a table called

A

Fields

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

What is a primary key

A

a primary key is a record of unique code something specific to someone or something e.g. registration

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

what is an entity (table)

A

an entity is an object in a system that we want to store information about

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

what are attributes (field)

A

attributes are the specific characteristic of an entity

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

what do entities become during implementation

A

tables

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

what do attributes become during implementation

A

fields

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

what are the data types

A

text - a mixture of letter and numbers

number - whole or real numbers

date - 26/9/24

time - 10:33

boolean - yes or no / true or false

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

what are the validation checks

A

presence check - is the field definitely required

restricted choice - a list of valid choices

field length - maximum number of characters for a text field

range - minimum or maximum value for a numerical field

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

what is a foreign key

A

a foreign key is something that can link to tables together

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

what is a primary key shown as in a table

A

PK

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

what is a foreign key shown as in a table

A

FK

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

how is a database structured

A

in tables

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

what is a record

A

a collection of data for one object, person or thing

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

what are fields used for in a database

A

they provide category headings for each piece of data

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

what is an example of SQL queries

A

SELECT fields
FROM table
WHERE criteria
ORDER BY field ASC/DESC;

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

what is an example of range check

A

range check £0 to £1000

17
Q

what is an example of restricted choice

A

restricted choice - size 1-14

18
Q

how are primary keys identified

A

they are underlined e.g. EmployeeID

19
Q

how are foreign keys identified

A

with an asterisk e.g. DepartmentID*