290 likes | 372 Views
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. Import. Import on computers means “to bring something that is in a different format into a program”.
E N D
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
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!”
CSV files A CSV file will look like this. Each row represents a single records and fields are separated by comma’s
How the CSV works Year of release Title ID Album Effort Rating Genre Track number Artist Title Duration
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.
Step 1 – Start import Go to External data then click on text file
Step 2- Select the CSV file You can get the file from http://dida.pwnict.co.uk/example%20work/database/Tracks.txt
Step 3 – Select append Make sure you select append and choose your table!!!!
Next and finish! Then just click next and finish!
Check the results Finally see if you have 214 records Check this in datasheet view
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
Activity Import data into your database You can use this PowerPoint OR http://dida.pwnict.co.uk/analysis/step4.html
Using your form Make sure you research the tracks! Next task is to use your form to add two music tracks of your choice.
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
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
Needed information It clearly states release date and duration. However it was not released in 2006! NOT ALL INFORMTION IS ACCURATE!
Accuracy is important! Another search brought up the date 24th December 1990 on Wikipedia. Can we trust this source?
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!
Sources table Item – What you have looked for
Sources table Where found – The FULL web address (URL) of where the research was found
Sources table P/S – Primary or secondary. If found on the web it is secondary
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.
Sources table You only fill this in if you need permission
Sources table Description. – What have you found and why do you need it?
Sources table Produced by – Who made the source?
Sources table Editing – Have you edited the source?
Sources table Where used – Where did you use the source
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.
Help for sources table http://dida.pwnict.co.uk/sourcesTable.html If you need extra help you can use the above website.