A Choose Your Own Adventure Lecture By Mr. Matzen.

59
A Choose Your Own Adventure Lecture By Mr. Matzen

Transcript of A Choose Your Own Adventure Lecture By Mr. Matzen.

Page 1: A Choose Your Own Adventure Lecture By Mr. Matzen.

A Choose Your Own Adventure Lecture

By Mr. Matzen

Page 2: A Choose Your Own Adventure Lecture By Mr. Matzen.

Once upon a time, Mr. Matzen Once upon a time, Mr. Matzen had a part time job working at…had a part time job working at…

ABank

AMusicStore

Page 3: A Choose Your Own Adventure Lecture By Mr. Matzen.

At that music store Mr. Matzen…At that music store Mr. Matzen…

Worked diligently everydayWorked diligently everyday

Had a lot of free time to thinkHad a lot of free time to think

Played FreeCell and listened to musicPlayed FreeCell and listened to music

Page 4: A Choose Your Own Adventure Lecture By Mr. Matzen.

As the employee of the year As the employee of the year competition approached Mr. Matzen…competition approached Mr. Matzen…

Began looking for a way to winBegan looking for a way to win

Gave up immediately and quitGave up immediately and quit

Starting sabotaging the work of other emplStarting sabotaging the work of other employeesoyees

Page 5: A Choose Your Own Adventure Lecture By Mr. Matzen.

The first thing Mr. Matzen tried…The first thing Mr. Matzen tried…

Was forgingtimecards tooverstate thehours of other

employees

Was drawingsilly pictures ofthe boss on the

counter andblaming others

Page 6: A Choose Your Own Adventure Lecture By Mr. Matzen.

Without a job Mr. Matzen was Without a job Mr. Matzen was hired as a bank teller. On his hired as a bank teller. On his

first day of work he wore…first day of work he wore…

Appropriatebusiness attire

A warrior outfit

Page 7: A Choose Your Own Adventure Lecture By Mr. Matzen.

Mr. Matzen spent his time Mr. Matzen spent his time thinking about…thinking about…

Whether Cheetoswere snacks or

chips

How to make hisjob easier

Page 8: A Choose Your Own Adventure Lecture By Mr. Matzen.

The customers kept interrupting The customers kept interrupting FreeCell so Mr. Matzen…FreeCell so Mr. Matzen…

Put out theclosed sign

an hour early

Decided to workon making hisjob easier, sohe could play

Page 9: A Choose Your Own Adventure Lecture By Mr. Matzen.

After several long windedAfter several long windeddebates Mr. Matzen started…debates Mr. Matzen started…

Writing a letterto Frito Lay

Yelling atcustomers to

get theiropinions

Page 10: A Choose Your Own Adventure Lecture By Mr. Matzen.

Unfortunately the boss showed Unfortunately the boss showed up unexpectedly and Mr. Matzen up unexpectedly and Mr. Matzen

was fired on the spot.was fired on the spot.

Let’s try adifferentcareer.

Page 11: A Choose Your Own Adventure Lecture By Mr. Matzen.

Mr. Matzen decided that the best Mr. Matzen decided that the best way to win the competition was…way to win the competition was…

Working lotsof overtime

Creating abetter wayto sort the

merchandise

PLAN A PLAN B

Page 12: A Choose Your Own Adventure Lecture By Mr. Matzen.

The hours of overtime took a toll The hours of overtime took a toll on Mr. Matzen’s grades so he on Mr. Matzen’s grades so he had to reconsider his decision.had to reconsider his decision.

PLAN B

Page 13: A Choose Your Own Adventure Lecture By Mr. Matzen.

At that time the store did not use At that time the store did not use a computer to monitor inventory. a computer to monitor inventory. The store paid $3 for each CD The store paid $3 for each CD

and $5 for each DVD. The sales and $5 for each DVD. The sales price was decided by the clerk. price was decided by the clerk. All CDs and DVDs were placed All CDs and DVDs were placed

alphabetically in the store.alphabetically in the store.

Page 14: A Choose Your Own Adventure Lecture By Mr. Matzen.

What were some of the What were some of the problems with this system?problems with this system?

Don’t know what was in inventory.Don’t know what was in inventory.

Don’t know the quantity in inventory.Don’t know the quantity in inventory.

Paid the same for Eminem and Paula AbdulPaid the same for Eminem and Paula Abdul

Inconsistent pricing of identical items.Inconsistent pricing of identical items.

All styles of music are mixed together, All styles of music are mixed together, making it more difficult to sort and more making it more difficult to sort and more difficult to find items.difficult to find items.

Page 15: A Choose Your Own Adventure Lecture By Mr. Matzen.

What could Mr. MatzenWhat could Mr. Matzendo to fix these problems?do to fix these problems?

1. Create a table with Microsoft Word

2. Create a table with Excel

3. Create a table with Access

Page 16: A Choose Your Own Adventure Lecture By Mr. Matzen.

There is a better answer.There is a better answer.

Page 17: A Choose Your Own Adventure Lecture By Mr. Matzen.

A database is correct but why?A database is correct but why?

A table in a database appears similar to a A table in a database appears similar to a table in spreadsheet, but the function is table in spreadsheet, but the function is different.different.

A spreadsheet is used to do mathematic A spreadsheet is used to do mathematic calculations on the data assembled.calculations on the data assembled.

A database is used to do easy searches A database is used to do easy searches (queries) of the data assembled.(queries) of the data assembled.

Page 18: A Choose Your Own Adventure Lecture By Mr. Matzen.

Knowing he needed to use a Knowing he needed to use a database Mr. Matzen…database Mr. Matzen…

Researcheddatabasescarefully

Dove inhead first to

Access

Page 19: A Choose Your Own Adventure Lecture By Mr. Matzen.

During the research he read During the research he read about 4 database components.about 4 database components.

TableTable – a collection of related information – a collection of related information organized in columns and rowsorganized in columns and rows

Query – an instruction to do a job, such as Query – an instruction to do a job, such as locating records with certain characteristicslocating records with certain characteristics

Form – a database object you can use to Form – a database object you can use to enter, edit, view, and print database info.enter, edit, view, and print database info.

Report – a database object that presents Report – a database object that presents database information in an accessible waydatabase information in an accessible way

Page 20: A Choose Your Own Adventure Lecture By Mr. Matzen.

Mr. Matzen opened Access and Mr. Matzen opened Access and became frustrated so he…became frustrated so he…

SangKaraoke to

let off steam

Decided toresearch

databases

Page 21: A Choose Your Own Adventure Lecture By Mr. Matzen.

Boo himoff stage.

Applaudloudly.

Page 22: A Choose Your Own Adventure Lecture By Mr. Matzen.

Fine. You don’t like my singing? Fine. You don’t like my singing? Then take some notes over…Then take some notes over…

Databases

Page 23: A Choose Your Own Adventure Lecture By Mr. Matzen.

The fame quickly went to Mr. The fame quickly went to Mr. Matzen’s head and he…Matzen’s head and he…

Tried acomedyroutine

Tried hishand atacting

Page 24: A Choose Your Own Adventure Lecture By Mr. Matzen.

Quit yourjob. A star

is born.

Get back todatabases.

Page 25: A Choose Your Own Adventure Lecture By Mr. Matzen.

Quit yourjob. A star

is born.

Get back todatabases.

Page 26: A Choose Your Own Adventure Lecture By Mr. Matzen.

After quitting his job Mr. Matzen After quitting his job Mr. Matzen realized he had no talent and…realized he had no talent and…

Looked foranother job

Began thedatabaseresearch

Page 27: A Choose Your Own Adventure Lecture By Mr. Matzen.

Creating a table was the first step.Creating a table was the first step.The rows are Records (all the data for an The rows are Records (all the data for an individual item)individual item)

The columns are Fields (the different types The columns are Fields (the different types of data we want to know)of data we want to know)

Record

Field

Page 28: A Choose Your Own Adventure Lecture By Mr. Matzen.

What fields need to be included What fields need to be included in the CD/DVD database?in the CD/DVD database?

ArtistArtist

AlbumAlbum

Price Buy UsedPrice Buy Used

Price Buy NewPrice Buy New

Price Sell UsedPrice Sell Used

Price Sell NewPrice Sell New

Number of CopiesNumber of Copies

Number of Copies Number of Copies DesiredDesired

Trade ValueTrade Value

CD or DVDCD or DVD

StyleStyle

Page 29: A Choose Your Own Adventure Lecture By Mr. Matzen.

Mr. Matzen entered all of this Mr. Matzen entered all of this information into a database andinformation into a database and

Everythingworked

perfectly

He forgotone little

thing

Page 30: A Choose Your Own Adventure Lecture By Mr. Matzen.

Mr. Matzen started bragging Mr. Matzen started bragging about this system to everyone.about this system to everyone.

Soon he atehis words.

He even helda press

conference.

Page 31: A Choose Your Own Adventure Lecture By Mr. Matzen.

At this press conference, a At this press conference, a reporter asked Mr. Matzen…reporter asked Mr. Matzen…

What aboutspecial editions?

Why are youso tall?

Page 32: A Choose Your Own Adventure Lecture By Mr. Matzen.

Now tell usabout theSpecialEditions.

I’m so confused.Give us morenotes please.

Page 33: A Choose Your Own Adventure Lecture By Mr. Matzen.

What about Special Editions or What about Special Editions or Remakes? How do you Remakes? How do you

differentiate between two items differentiate between two items with the same name?with the same name?

Give usa hint.

No idea. Giveus the answer.

Page 34: A Choose Your Own Adventure Lecture By Mr. Matzen.

Should we add a field or change Should we add a field or change a field we already have?a field we already have?

Change Add

Page 35: A Choose Your Own Adventure Lecture By Mr. Matzen.

Should we add a word or a Should we add a word or a number?number?

Word Number

Page 36: A Choose Your Own Adventure Lecture By Mr. Matzen.

What number should we add?What number should we add?

Create anumber

Barcode

Page 37: A Choose Your Own Adventure Lecture By Mr. Matzen.

The barcode is the key. An item The barcode is the key. An item is specifically identified by that is specifically identified by that number. It is unique to each number. It is unique to each version or edition of an item.version or edition of an item.

So why dowe care?

What is abarcode?

Page 38: A Choose Your Own Adventure Lecture By Mr. Matzen.

Here is a barcode.Here is a barcode.

Please lectureabout Wal-Martand barcodes

Let’s get backto databases

Page 39: A Choose Your Own Adventure Lecture By Mr. Matzen.

The story of Wal-MartThe story of Wal-Mart

Now on todatabase

Page 40: A Choose Your Own Adventure Lecture By Mr. Matzen.

Why do you care about barcodes? Why do you care about barcodes? So we can understand… So we can understand…

PrimaryKeys

Wal-Mart’sSuccess

Page 41: A Choose Your Own Adventure Lecture By Mr. Matzen.

A primary key is the part of a A primary key is the part of a database unique to one item. database unique to one item.

When connecting two databases When connecting two databases the primary key is needed as a the primary key is needed as a

reference to match items.reference to match items.

Enough talk.Let’s get on

the computers.

How aboutanother

example.

Page 42: A Choose Your Own Adventure Lecture By Mr. Matzen.

At that time the bank tracked At that time the bank tracked accounts by social security accounts by social security

number. Last name, first name, number. Last name, first name, social security number, and social security number, and

address were the only address were the only information stored on the information stored on the

computer.computer.

Page 43: A Choose Your Own Adventure Lecture By Mr. Matzen.

What were some of the What were some of the problems with this system?problems with this system?

No room for multiple account owners.No room for multiple account owners.

Does not differentiate between account Does not differentiate between account types.types.

Does not specify the account.Does not specify the account.

Page 44: A Choose Your Own Adventure Lecture By Mr. Matzen.

What could Mr. MatzenWhat could Mr. Matzendo to fix these problems?do to fix these problems?

1. Alter a table with Microsoft Word

2. Alter a table with Excel

3. Alter a table with Access

Page 45: A Choose Your Own Adventure Lecture By Mr. Matzen.

There is a better answer.There is a better answer.

Page 46: A Choose Your Own Adventure Lecture By Mr. Matzen.

A database is correct but why?A database is correct but why?

A table in a database appears similar to a A table in a database appears similar to a table in spreadsheet, but the function is table in spreadsheet, but the function is different.different.

A spreadsheet is used to do mathematic A spreadsheet is used to do mathematic calculations on the data assembled.calculations on the data assembled.

A database is used to do easy searches A database is used to do easy searches (queries) of the data assembled.(queries) of the data assembled.

Page 47: A Choose Your Own Adventure Lecture By Mr. Matzen.

Knowing he needed to use a Knowing he needed to use a database Mr. Matzen…database Mr. Matzen…

Researcheddatabasescarefully

Dove inhead first to

Access

Page 48: A Choose Your Own Adventure Lecture By Mr. Matzen.

During the research he read During the research he read about 4 database components.about 4 database components.

TableTable – a collection of related information – a collection of related information organized in columns and rowsorganized in columns and rows

Query – an instruction to do a job, such as Query – an instruction to do a job, such as locating records with certain characteristicslocating records with certain characteristics

Form – a database object you can use to Form – a database object you can use to enter, edit, view, and print database info.enter, edit, view, and print database info.

Report – a database object that presents Report – a database object that presents database information in an accessible waydatabase information in an accessible way

Page 49: A Choose Your Own Adventure Lecture By Mr. Matzen.

Mr. Matzen opened Access and Mr. Matzen opened Access and became frustrated so he…became frustrated so he…

Took a trip toGraceland

Decided toresearch

databases

Page 50: A Choose Your Own Adventure Lecture By Mr. Matzen.

All ShookUp At The

King’sGrave.

HeartbreakHotel With

JoshuaJackson.

Page 51: A Choose Your Own Adventure Lecture By Mr. Matzen.

SuspiciousMinds.

Get back todatabases.

Page 52: A Choose Your Own Adventure Lecture By Mr. Matzen.

Don’t BeCruel.

Get back todatabases.

Page 53: A Choose Your Own Adventure Lecture By Mr. Matzen.

Creating a table was the first step.Creating a table was the first step.The rows are Records (all the data for an The rows are Records (all the data for an individual item)individual item)

The columns are Fields (the different types The columns are Fields (the different types of data we want to know)of data we want to know)

Record

Field

Page 54: A Choose Your Own Adventure Lecture By Mr. Matzen.

What fields need to be included What fields need to be included in the bank account database?in the bank account database?

Account numberAccount number

Primary Owner 1Primary Owner 1

Primary Owner 2Primary Owner 2

Secondary Owner 1Secondary Owner 1

Secondary Owner 2Secondary Owner 2

Account typeAccount type

Social Security Social Security NumberNumber

AddressAddress

Phone NumberPhone Number

Page 55: A Choose Your Own Adventure Lecture By Mr. Matzen.

The account number is used to The account number is used to identify the record instead of the identify the record instead of the

social security number. In social security number. In Access it can be the primary key.Access it can be the primary key.

PrimaryKey?

Access?

Page 56: A Choose Your Own Adventure Lecture By Mr. Matzen.

Yes Access. You must have Yes Access. You must have known that was what all this run known that was what all this run

around was leading to.around was leading to.

Right, so whatis a primary key.

I thought itwas leadingto a free day.

Page 57: A Choose Your Own Adventure Lecture By Mr. Matzen.

Listen! Just drop the whole free Listen! Just drop the whole free day thing and get on with it.day thing and get on with it.

PrimaryKey

PrimaryKey

I’m tired of giving you choices.

Page 58: A Choose Your Own Adventure Lecture By Mr. Matzen.

Why would you wear this to work?Why would you wear this to work?

Just a joke.We can be

serious now.

I see nothingwrong with this

outfit.

Page 59: A Choose Your Own Adventure Lecture By Mr. Matzen.

Nothing wrong. You just are Nothing wrong. You just are wasting time now.wasting time now.

On to a banking scenario.