Objectives

Students will be able to:

  • import data from a csv file into a common database application
  • understand that a database table is composed of rows (records) and columns (fields)
  • undertand that fields can have different datatypes eg number, text
  • sort and filter data in the database table
  • possibly create a simple chart.

Databases - powering the web

Twitter. Some people love it. Some people hate it! What most people don't realise is that Twitter is just a great big ugly database with a beautiful user interface.

Look at the tweets above. Each tweet has:

  • the name of the user
  • the Twitter handle of the user
  • an avatar
  • some tweet text
  • some content eg an image, gif or video
  • the date of the tweet

But where is all of this data coming from?

id username twitterHandle tweetContent Date
1 JamesBrolin @james01 Yo Yo Yo! Bro! 12/1/2018
2 MaceyT @maceyyy Feeling gorgeous 12/1/2018
3 LowBro @thelowbro Anyone in town for Hula? 12/1/2018
4 JamesBrolin @james01 Bro Bro Bro! Yo! 12/1/2018
5 MaxStorm @lilmista Coffeeeeeeeee!! 12/1/2018
6 JamesBrolin @james01 Dog ate ma homework! 12/1/2018
7 MollyAnne @mollyanne21 You din't have to break it. 12/1/2018
8 ChrisJones @acdcdca Who stole the roll?! 12/1/2018

Description

This is a database table.

It has 8 records of data.

Each record has 5 fields.

One of the fields has alphanumeric datatype.

One of the fields has numeric datatype.

One of the fields has date datatype.

   Skill-up 1 - Importing data

Let's import a basic data file into a powerful database application. Watch this video if you need help.

data file

Be smart! Download the file and save it in a new project folder. Don't leave it in the downloads folder of your computer. You are not a newbie!

 

    Challenge 1 - Editing the table

Can you delete all Johnny Depp movies from database. Hint: there are 16 records storing Johnny Depp movie info:

    Challenge 2 - Entering data

Search for your favourite movie. Is it in the database? If not, do some research and add it.

Ask someone near you for about theirs. Is it in the database? If not add it.

If your favourite movies are already in the database table, do some research and add 2 new ones. Remember to research the imdb score - don't just make it up!

You should be left with 983 records of data!

   Evidence

Create an evidence document eg a Google Doc. Paste a screenshot of your table in Design View into your document. Write 3 things that you now know about databases.

Food For Thought

This short course is going to give you an appreciation of databases! Probably without realising it, you interact with databases everyday. If you're a Facebook user, or a Gmail user, or an Instagram user, or a.... web user - you deal with databases!

Homework




essential vocabulary

database import evidence table integer screenshot record text field double data type


SUBSCRIBE

Join my mailing list to receive updates on the latest blog posts and other things.