dida – database practice lesson 3 – objectives look at how at the different ways of adding data...

29
DiDA – Database practice Lesson 3 – Objectives • Look at how at the different ways of adding data to a database. • Learn how to import data into access • Learn how to record research

Upload: deasia-shipman

Post on 11-Dec-2015

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: DiDA – Database practice Lesson 3 – Objectives Look at how at the different ways of adding data to a database. Learn how to import data into access Learn

DiDA – Database practice

Lesson 3 – Objectives

• Look at how at the different ways of adding data to a database.

• Learn how to import data into access• Learn how to record research

Page 2: DiDA – Database practice Lesson 3 – Objectives Look at how at the different ways of adding data to a database. Learn how to import data into access Learn

DiDA – Database practice

Import

• Import on computers means “to bring something that is in a different format into a program”.

• For databases we can import something known as a comma delimited file– Sometimes known as a CSV file– “Comma separated values!”

Page 3: DiDA – Database practice Lesson 3 – Objectives Look at how at the different ways of adding data to a database. Learn how to import data into access Learn

DiDA – Database practice

CSV files

A CSV file will look like this.Each row represents a single records and fields are separated by comma’s

Page 4: DiDA – Database practice Lesson 3 – Objectives Look at how at the different ways of adding data to a database. Learn how to import data into access Learn

DiDA – Database practice

How the CSV works

Title ID

Title

Genre

Artist

Album

Track number

Year of release

Duration

EffortRating

Page 5: DiDA – Database practice Lesson 3 – Objectives Look at how at the different ways of adding data to a database. Learn how to import data into access Learn

DiDA – Database practice

Want to type it?

• Clearly to type in this data would take a long time!

• We will use access’ import feature to do this for us.

Page 6: DiDA – Database practice Lesson 3 – Objectives Look at how at the different ways of adding data to a database. Learn how to import data into access Learn

DiDA – Database practice

Step 1 – Start import

Go to External data then click on text file

Page 7: DiDA – Database practice Lesson 3 – Objectives Look at how at the different ways of adding data to a database. Learn how to import data into access Learn

DiDA – Database practice

Step 2- Select the CSV file

You can get the file from http://dida.pwnict.co.uk/example%20work/database/Tracks.txt

Page 8: DiDA – Database practice Lesson 3 – Objectives Look at how at the different ways of adding data to a database. Learn how to import data into access Learn

DiDA – Database practice

Step 3 – Select append

Make sure you select append and choose your table!!!!

Page 9: DiDA – Database practice Lesson 3 – Objectives Look at how at the different ways of adding data to a database. Learn how to import data into access Learn

DiDA – Database practice

Next and finish!

• Then just click next and finish!

Page 10: DiDA – Database practice Lesson 3 – Objectives Look at how at the different ways of adding data to a database. Learn how to import data into access Learn

DiDA – Database practice

Check the results

Finally see if you have 214 records

Check this in datasheet view

Page 11: DiDA – Database practice Lesson 3 – Objectives Look at how at the different ways of adding data to a database. Learn how to import data into access Learn

DiDA – Database practice

If it failed...

• Check the following– Have you got your fields in the correct order– Are your validation rules correct– Are your field sizes correct?

• You can find the field list here• http://dida.pwnict.co.uk/analysis/step1.html

Page 12: DiDA – Database practice Lesson 3 – Objectives Look at how at the different ways of adding data to a database. Learn how to import data into access Learn

DiDA – Database practice

Activity

• Import data into your database• You can use this PowerPoint OR• http://dida.pwnict.co.uk/analysis/step4.html

Page 13: DiDA – Database practice Lesson 3 – Objectives Look at how at the different ways of adding data to a database. Learn how to import data into access Learn

DiDA – Database practice

Using your form

• Next task is to use your form to add two music tracks of your choice.

Make sure you research the tracks!

Page 14: DiDA – Database practice Lesson 3 – Objectives Look at how at the different ways of adding data to a database. Learn how to import data into access Learn

DiDA – Database practice

Recording research

• We are going to use a sources table to record your research.

• You can find a blank copy here

• http://dida.pwnict.co.uk/word%20docs/sourcesTable.doc

Page 15: DiDA – Database practice Lesson 3 – Objectives Look at how at the different ways of adding data to a database. Learn how to import data into access Learn

DiDA – Database practice

Adding some Metal!

I want to add Iron maiden – Bring your daughter to the slaughter to the database.

I found the details I need on amazon.co.uk

Page 16: DiDA – Database practice Lesson 3 – Objectives Look at how at the different ways of adding data to a database. Learn how to import data into access Learn

DiDA – Database practice

Needed information

It clearly states release date and duration.However it was not released in 2006!

NOT ALL INFORMTION IS ACCURATE!

Page 17: DiDA – Database practice Lesson 3 – Objectives Look at how at the different ways of adding data to a database. Learn how to import data into access Learn

DiDA – Database practice

Accuracy is important!

Another search brought up the date 24th December 1990 on Wikipedia.

Can we trust this source?

Page 18: DiDA – Database practice Lesson 3 – Objectives Look at how at the different ways of adding data to a database. Learn how to import data into access Learn

DiDA – Database practice

Finding more than one source

• To ensure the information we find is correct we should find MORE than once source.

• That way we know it is correct!

Page 19: DiDA – Database practice Lesson 3 – Objectives Look at how at the different ways of adding data to a database. Learn how to import data into access Learn

DiDA – Database practice

Sources table

Item – What you have looked for

Page 20: DiDA – Database practice Lesson 3 – Objectives Look at how at the different ways of adding data to a database. Learn how to import data into access Learn

DiDA – Database practice

Sources table

Where found – The FULL web address (URL) of where the research was found

Page 21: DiDA – Database practice Lesson 3 – Objectives Look at how at the different ways of adding data to a database. Learn how to import data into access Learn

DiDA – Database practice

Sources table

P/S – Primary or secondary. If found on the web it is secondary

Page 22: DiDA – Database practice Lesson 3 – Objectives Look at how at the different ways of adding data to a database. Learn how to import data into access Learn

DiDA – Database practice

Sources table

Permission required – If you copy a image / music then you need to get permission. If you just getting ideas or information then you do not need permission.

Page 23: DiDA – Database practice Lesson 3 – Objectives Look at how at the different ways of adding data to a database. Learn how to import data into access Learn

DiDA – Database practice

Sources table

You only fill this in if you need permission

Page 24: DiDA – Database practice Lesson 3 – Objectives Look at how at the different ways of adding data to a database. Learn how to import data into access Learn

DiDA – Database practice

Sources table

Description. – What have you found and why do you need it?

Page 25: DiDA – Database practice Lesson 3 – Objectives Look at how at the different ways of adding data to a database. Learn how to import data into access Learn

DiDA – Database practice

Sources table

Produced by – Who made the source?

Page 26: DiDA – Database practice Lesson 3 – Objectives Look at how at the different ways of adding data to a database. Learn how to import data into access Learn

DiDA – Database practice

Sources table

Editing – Have you edited the source?

Page 27: DiDA – Database practice Lesson 3 – Objectives Look at how at the different ways of adding data to a database. Learn how to import data into access Learn

DiDA – Database practice

Sources table

Where used – Where did you use the source

Page 28: DiDA – Database practice Lesson 3 – Objectives Look at how at the different ways of adding data to a database. Learn how to import data into access Learn

DiDA – Database practice

Activity

• Choose two music tracks to add to your database.• Find two sources for EACH track (so 4 in total) to

find– The duration of the song– Year of release– Album title– Track number– Etc

• Fill out the sources table and add the tracks to your database using your form.

Page 29: DiDA – Database practice Lesson 3 – Objectives Look at how at the different ways of adding data to a database. Learn how to import data into access Learn

DiDA – Database practice

Help for sources table

• http://dida.pwnict.co.uk/sourcesTable.html

• If you need extra help you can use the above website.