Data Storage Flashcards

1
Q

Explain the difference between a Field and an Item of data.

A

A field specifies a data type and has a name. An item is one piece of data that will fit within a field in a record

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

Why would a foreign key be used in a relational database?

A

To link the data to a related data in another table

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

What is SQL?

A

Structured Query Language allows users to create databases and tables to insert, retrieve and modify data by sending commands to the Database Management System

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

Advantages of moving from a flat database to a relational database

A

Data is easier to manipulate and less prone to errors like data duplication and data loss

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

Disadvantages of moving from a flat database to a relational database

A

It takes time and requires technical skill to understand and build an effective relational database to move to, which can be expensive for a company

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

Why is data given set types?

A

To avoid errors where inappropriate data could be entered and to make data processing easier as it is in the correct form

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

Give the data types that can store a number

A

Short, Long, Int, Double, Float

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

Explain what a Boolean value is and give an example where it may be used.

A

Either a true or false, used where nothing else is possible. eg: to track if a product has gone out of print in retail business database

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

What kind of data is most often categorised as “Big Data”?

A

Personal data collected from tracking or social media

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

Why do companies and organisations want so much data about you?

A

To build profiles, which can be used to predict your interest and to effectively market products in a targeted manner

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

What is the major UK law that keeps data safe?

A

The GDPR requires organisations to responsibly keep data limited. What they can collect and use, they must be responsive

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

Examples of different SQL database systems

A

SQLite, MySQL, Oracle, Microsoft, PostgreSQL

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

Some services use a “NoSQL” database, how does this differ?

A

A NoSQL database is an evolution of a flat model that adds constraints to make sure that data is copied to the correct places as it is updated

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

What advantages does NoSQL offer?

A

It can be faster to read from than a relational database but compromises consistence as even when data is copied this takes time and queries made during that time may return old data

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

How are negative numbers stored in binary?

A

An extra bit may be used which indicates if a number is positive or negative, this will reduce the amount of space available by half, so is only done when negatives are needed

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

What does the Freedom of Information Act do?

A

Gives a general right of access to information held by public authorities. It is often used by journalists and political campaigners to understand what the Gov is doing and bring bad practises to public view

17
Q

How do each database systems differ?

A

The majority use the same syntax with different backend. MySQL databased are smaller than PostgreSQL, while PostgreSQL is faster at more complex queries