14
Databases. Revision tip: Focus on the things you find difficult first.

Databases. - WordPress.com › 2014 › ... · 2 2. Read through the chapter on databases. 15 3. Work through the questions on the revision ... Here is part of a database of customer

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Databases. - WordPress.com › 2014 › ... · 2 2. Read through the chapter on databases. 15 3. Work through the questions on the revision ... Here is part of a database of customer

Databases.

Revision tip: Focus on the things you find difficult first.

Page 2: Databases. - WordPress.com › 2014 › ... · 2 2. Read through the chapter on databases. 15 3. Work through the questions on the revision ... Here is part of a database of customer

Task Time (minutes) a

1. Complete self assessment sheet. 2 2. Read through the chapter on databases. 15 3. Work through the questions on the revision

template focusing on weaker areas first. 25

4. Attempt the multiple choice test on Edmodo. 10 5. Attempt the past paper exam questions. 20 6. Mark past paper exam paper questions. 15 7. Read through the chapter on databases. 15 8. Attempt the multiple choice test on Edmodo again. 10

“Every lesson counts – don’t waste a minute.”

Page 3: Databases. - WordPress.com › 2014 › ... · 2 2. Read through the chapter on databases. 15 3. Work through the questions on the revision ... Here is part of a database of customer

Importance of databases. 2. Most organisations depend on their databases in order to operate.

Because of this databases need to be:

(4 marks)

i) ……………………………………………………............................................

........................................................................................................................

ii) ……………………………………………………............................................

........................................................................................................................

iii) ……………………………………………………............................................

........................................................................................................................

iv) ……………………………………………………............................................

........................................................................................................................

1. Give a definition of a database.

(2 marks)

……………………………………………………............................................

....................................................................................................................

……………………………………………………............................................

......................................................................................................................

……………………………………………………............................................

......................................................................................................................

……………………………………………………............................................

......................................................................................................................

……………………………………………………............................................

......................................................................................................................

Page 4: Databases. - WordPress.com › 2014 › ... · 2 2. Read through the chapter on databases. 15 3. Work through the questions on the revision ... Here is part of a database of customer

Data security & data integrity Exam tip: Remember that validation can be set up in any way that the database designer wants.

1. Explain the term ‘validation’.

(3 marks)

……………………………………………………............................................

....................................................................................................................

……………………………………………………............................................

......................................................................................................................

……………………………………………………............................................

......................................................................................................................

……………………………………………………............................................

......................................................................................................................

……………………………………………………............................................

......................................................................................................................

2. What is meant by a range check?

(2 marks)

……………………………………………………............................................

....................................................................................................................

……………………………………………………............................................

......................................................................................................................

……………………………………………………............................................

......................................................................................................................

……………………………………………………............................................

3. Explain the term ‘verification’.

(2 marks)

……………………………………………………............................................

....................................................................................................................

……………………………………………………............................................

......................................................................................................................

……………………………………………………............................................

……………………………………………………............................................

......................................................................................................................

4. What is a ‘check digit’.

(2 marks)

……………………………………………………............................................

....................................................................................................................

……………………………………………………............................................

......................................................................................................................

……………………………………………………............................................

.....................................................................................................................

……………………………………………………............................................

5. A data table is set up to hold personal details of customers for an

online business. Describe how the following fields would be validated:

(8 marks)

(a) Surname

……………………………………………………............................................

....................................................................................................................

(b) Date of birth

……………………………………………………............................................

....................................................................................................................

(c) Gender

……………………………………………………............................................

....................................................................................................................

(d) Credit limit

……………………………………………………............................................

....................................................................................................................

Page 5: Databases. - WordPress.com › 2014 › ... · 2 2. Read through the chapter on databases. 15 3. Work through the questions on the revision ... Here is part of a database of customer

Data redundancy

(a) Define the term data redundancy.

(1 mark)

……………………………………………………............................................

....................................................................................................................

……………………………………………………............................................

(b) Explain how data redundancy affects this table.

(2 marks)

……………………………………………………............................................

....................................................................................................................

……………………………………………………............................................

......................................................................................................................

(c) Explain what problems might occur as a result of the redundancy in

this example. (2 marks)

……………………………………………………............................................

....................................................................................................................

……………………………………………………............................................

......................................................................................................................

(d) Explain how the data could be stored to eliminate this problem.

(2 marks)

……………………………………………………............................................

....................................................................................................................

……………………………………………………............................................

......................................................................................................................

1. What is a flat file database?

(1 mark)

……………………………………………………............................................

....................................................................................................................

……………………………………………………............................................

......................................................................................................................

2. Explain what a relational database is.

(3 marks)

……………………………………………………............................................

....................................................................................................................

……………………………………………………............................................

......................................................................................................................

……………………………………………………............................................

.....................................................................................................................

……………………………………………………............................................

.....................................................................................................................

……………………………………………………............................................

6. Here is part of a database of customer details:

Flat file vs. Relational

Page 6: Databases. - WordPress.com › 2014 › ... · 2 2. Read through the chapter on databases. 15 3. Work through the questions on the revision ... Here is part of a database of customer

Database Management System (DBMS) 4. Give the data that would result from running the following queries on

the table below:

1. Describe four features of a typical DBMS.

(4 marks)

i) ……………………………………………………............................................

........................................................................................................................

ii) ……………………………………………………............................................

........................................................................................................................

iii) ……………………………………………………............................................

........................................................................................................................

iv) ……………………………………………………............................................

........................................................................................................................

2. Explain the difference between an entity and a table.

(2 marks)

……………………………………………………............................................

.....................................................................................................................

……………………………………………………............................................

.....................................................................................................................

……………………………………………………............................................

……………………………………………………............................................

……………………………………………………............................................

……………………………………………………............................................

3. Describe two ways in which a query can be constructed.

(2 marks)

……………………………………………………............................................

.....................................................................................................................

……………………………………………………............................................

.....................................................................................................................

……………………………………………………............................................

……………………………………………………............................................

……………………………………………………............................................

……………………………………………………............................................

(8 marks)

(a) SELECT Surname, City WHERE Sex = “m”

……………………………………………………............................................

....................................................................................................................

(b) SELECT Surname, City WHERE Sex = “m” AND Years in employment > 3

……………………………………………………............................................

....................................................................................................................

(c) SELECT Surname, Salary WHERE Years in employment < 4 AND

Salary > 35000

……………………………………………………............................................

....................................................................................................................

(d) SELECT Surname WHERE City = “Birmingham” OR Years in

employment = 4

……………………………………………………............................................

....................................................................................................................

5. Construct a query that would produce the following result:

(a) A list of surnames and salaries of all female employees who live in

Birmingham. (2 marks)

……………………………………………………............................................

....................................................................................................................

……………………………………………………............................................

Page 7: Databases. - WordPress.com › 2014 › ... · 2 2. Read through the chapter on databases. 15 3. Work through the questions on the revision ... Here is part of a database of customer

Past paper exam questions. 2011 past paper.

Page 8: Databases. - WordPress.com › 2014 › ... · 2 2. Read through the chapter on databases. 15 3. Work through the questions on the revision ... Here is part of a database of customer

Past paper answers. 2011 past paper. Notes: What do I need to improve?

Page 9: Databases. - WordPress.com › 2014 › ... · 2 2. Read through the chapter on databases. 15 3. Work through the questions on the revision ... Here is part of a database of customer

Past paper exam questions. 2011 past paper.

Page 10: Databases. - WordPress.com › 2014 › ... · 2 2. Read through the chapter on databases. 15 3. Work through the questions on the revision ... Here is part of a database of customer

Past paper answers. 2011 past paper. Notes: What do I need to improve?

Page 11: Databases. - WordPress.com › 2014 › ... · 2 2. Read through the chapter on databases. 15 3. Work through the questions on the revision ... Here is part of a database of customer

Past paper exam questions. 2012 past paper.

Long answer question.

@CES_teach

Page 12: Databases. - WordPress.com › 2014 › ... · 2 2. Read through the chapter on databases. 15 3. Work through the questions on the revision ... Here is part of a database of customer

Past paper answers. 2012 past paper.

Notes: What do I need to improve?

Page 13: Databases. - WordPress.com › 2014 › ... · 2 2. Read through the chapter on databases. 15 3. Work through the questions on the revision ... Here is part of a database of customer

Past paper exam questions. 2013 past paper.

Page 14: Databases. - WordPress.com › 2014 › ... · 2 2. Read through the chapter on databases. 15 3. Work through the questions on the revision ... Here is part of a database of customer

Past paper answers. 2013 past paper.

Notes: What do I need to improve?