2.5 Databases and distributed systems Flashcards

1
Q

What is normalisation?

A

A staged process which removes repeated groups of data and inconsistencies.

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

What is the difference between a primary and a foreign key?

A

A primary key is unique and used to identify a record whereas a foreign key is a field of one table which is also the primary key of another table (links tables together).

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

What is the difference between a flat file and a relational database?

A

A flat file database is one table which holds all data however a relational database is a large, organised collection of data items stored in tables which link to other tables and can be accessed in many ways throughout the program.

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

What are 5 advantages of relational databases?

A

Data Consistency
No Data Redundancy
Data Integrity
Data Independence
Better Security

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

What is Data Consistency?

A

Data Consistency is the relationship between the input data, the processed data and the output data as well as other related data.

Changes made to data is controlled so that the specific data value is consistent throughout the whole database.

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

What is Data Redundancy?

A

Occurs when duplicate data is available in multiple tables. This wastes storage and could potentially compromise data consistency.

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

What is Data Integrity?

A

It is the correctness of data e.g. the extent to which it truthfully represents the original information.

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

What is Data Independence?

A

Refers to the separation of information from the applications and programs that use it. New systems/programs can still develop/use this data without having to change it or modify the source code.

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

What are three examples of security in a relational database?

A

Hierarchy of passwords - Limits users to certain parts of the program.
Access rights to parts of the program - Only certain users can access and change data.
Data is stored separately from the program.

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

How can products in a supermarket have a One to One entity relationship to a barcode?

A

Every product in the supermarket will have a unique barcode number.

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

How can a member of a library have a One to Many entity relationship with the books?

A

A member of a library can take home multiple books therefore, all the books will have the same, temporary owner.

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

How can teachers have a Many to Many entity relationship with pupils in a school?

A

Teachers can teach many pupils across the day however, the pupil will also be taught by many teachers throughout their day.

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

How can many-to-many relationships be improved?

A

They can be replaced by a one-many-one relationship.

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

What is Big Data?

A

Data which involves very large, complex datasets therefore traditional databases are unable to process them under acceptable time frames.

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

What are four examples of Big Data?

A

Transactional data from ecommerce.
Machine data from GPS.
RFID Readers.
Social Media interactions.

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

What is a Data Warehouse?

A

A large collection of archived data used for decision making.

17
Q

Name six advantages of Data Warehousing which will benefit an organisation.

A

Allows an organisation to:
- Store information about every sale
- See who has bought items and when
- Use data mining
- Find the most popular product
- Target customers with special offers
- Plan future changes/developments within the business

18
Q

What is Data Mining?

A

The retrieval and analysis of large sets of data in data warehouses to identify trends and patterns e.g. market opportunities and health trends.

19
Q

What are 5 advantages of Data Mining which benefit an organisation?

A

Allows an organisation to create:
- A list of customers who are likely to buy a certain product
- Comparisons with competitors
- Predictions for future sales
- Analysis of best sites for shops
- Analysis of sales patterns

20
Q

What is Predictive Analysis?

A

A sub-set of data mining which is used to make predictions about future events, based on individual historic behaviour e.g. weather, insurance risk assessments and targeted marketing.

21
Q

How is predictive analysis implemented?

A

Predictive analysis assigns a probability for the likelihood that something, such as a customer, will behave in a certain way.

22
Q

How could a travel company receive data to undergo predictive analysis?

A

Comments on social media pages.
Sensors in smart devices such as location services.
Online questionnaires/satisfaction surveys.

23
Q

What is a distributed database?

A

Data is not stored in one location, but spread out across a network. The user would not be aware of this, it would still just appear as a large database.

24
Q

What are 6 advantages of distributed databases?

A
  • Non-dependent on a central store of data.
  • Reduces network traffic.
  • If one server fails, the entire system does not go down.
  • Easy to backup and copy from one server to another.
  • If data is lost on the central site, it can be recovered from another local site.
  • New locations can be added to a database without the need to rewrite the entire database.
25
Q

What are disadvantages of distributed databases?

A
  • Heavy reliance on networks and communications.
  • Security issues if sensitive data is transferred.
  • If a link to a server fails, data may not be able to be obtained from that server.
  • Increased costs for extra communication lines.
  • Greater chance of data inconsistency.
  • Harder to control the security of data spread.
26
Q

Write an SQL command to output the name and tutor group of all students in a table called STUDENTS.

A

SELECT Name, TutorGroup FROM STUDENTS

27
Q

Write an SQL command to output the names of students with tutor group 12.1 from a table named STUDENTS.

A

SELECT Name FROM STUDENTS WHERE TutorGroup = ‘12.1’

28
Q

Write an SQL command to change the tutor of students whose tutor is currently 12.1 to 12.2 from a table named STUDENTS.

A

UPDATE STUDENTS SET Tutor = ‘12.2’
WHERE Tutor = ‘12.1’

29
Q

Write an SQL command to output all names of students who have the same Tutor as Charlie Kelly from a table named STUDENTS.

A

SELECT Name FROM STUDENTS WHERE TutorGroup = (SELECT TutorGroup FROM STUDENTS WHERE Name = ‘Charlie Kelly)

30
Q

Write an SQL command to create a new table PHONES to store a phone number for each room number.

A

CREATE TABLE PHONES {
RoomNum Char(5) NOT NULL
PhoneNum Char(5) NOT NULL
}

31
Q

Write an SQL command to enter Room 113 with Phone 625 into a table named PHONES.

A

INSERT INTO PHONES VALUES (‘113’,’625’)

32
Q

Write an SQL command to output all student names with their date of births in descending order from a table named STUDENTS.

A

SELECT Name, DateBirth FROM STUDENTS
ORDER BY DateBirth DESCENDING

33
Q

What is the role of a Database Administrator?

A

The person in a company who is responsible for the structure, security and management of the database system.