sl10 -database Flashcards

1
Q

What is a database

A

An organized collection of data

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

Give some advantages of using a database

A

Allows for easy:
Adding
Modification
Deletion
Searching

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

What is a record in a database

A

A horizontal row

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

What is a field in a database

A

A vertical row

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

What is a flat file database

A

A database that has no relationships with other databases

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

When would a flat file database be appropriate

A

Storing contact details
Small product database
Maintain a game or music collection

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

Why are flat file databases inefficient

A

Lots of data is repeated, meaning that large amounts of unnecessary data is used

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

What are the 3 types of relationship in a database

A

1:1 (1 to 1)
1:M (1 to many)
M:M (many to many)

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

Describe a 1:1 relational database

A

Each record in one database corresponds to another record in a different database. They are linked together by a primary and a foreign key

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

Describe a primary key

A

A field in each record that is guaranteed to be unique

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

What are the SQL commands for selecting data

A

Select
From
Where

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

What are the SQL commands for modifying data

A

Update
Delete
Insert

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

What is DBMS

A

A database management system

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

What is the purpose of DBMS

A

Hiding the underlying structure of the data and ensuring that it maintains referential integrity

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

What are the 3 common database file types

A

CSV – Comma separated values
JSON – JavaScript object notation
XML – Extensible markup language

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

Describe the purpose of foreign key

A

A field in one table that refers to a primary key of a second table