Unit 9 - database structure Flashcards

(10 cards)

1
Q

Flat-file database

A

Also known as a single-table databse, made up of a single table. Structured, persistent collection of data.

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

Fields

A

The columns of a database; each field has its own defined data type. Contains particular piece of information/property about an entity.

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

Record

A

Rows in a database (exluding name of fields/column headings). Group of fields related to a particular entity.

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

Entity

A

Anything about which data is collected & stored.

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

5 data types in databases

A

Real - data that has a decimal point
Character - single letter/text value
Integer - whole number
Text/alphanumeric - string of characters
Boolean - True or False
Date/Time - values that represent data and/or time in specified format

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

Primary key

A

A field that uniquely indentifies a single record from all the others in a database table. Never repeat.

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

SQL

A

Strutured querry language; standard language for manipulating database

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

State 4 different SQL selection statements + meaning

A

SELECT - picks field(s) you want to view from database.
FROM - shows which database/table information is taken from
WHERE - specifies condition for retrieved data, e.g. parameters for another field. Can use equal to, less than, etc. and boolean operations.
* - selects all fields in database table

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

State 3 different SQL sorting statements & arithmetic operations + meaning

A

ORDER BY [field] [keyword] - sorts the fields/data retrieved from a table in ascending/descending order. Keyword will be ASC or DESC
Sum - sums all numeric values in field. E.g. SELECT Sum(Field name)
Count - counts number of records (that meet specific criteria). E.g. SELECT Count(Field name)

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

How should SQL statements be ended?

A

With colon ; to mark end of statement

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