Video Game Competition - Score Page (SQL)

Objectives

Materials

The following materials are needed and should be prepared before beginning the lesson.

Audience

TimeFrame

Due to the technical nature of this lesson, approximately two weeks should be set aside for this lesson.

Previous Knowledge

Students will have been studying SQL for several weeks now. The should now have the following skills:

Previous lessons have taught the Big6 problem solving skills. Students should be familiar with the 6 steps and will be using them in this lesson as well.

Anticipatory Set

Play some fun music and perhaps a few videos of video games being played while students enter the room. Announce that the students will be working to organize the website for a video game competition.

Lesson Outline

Present students with the scenario they will be working in. "You are a developer in a group organizing a video game competition. The group wants to develop a page on their website that displays a table combining information about the video games, the players, and the scores in the competition. It is not your responsibility to develop the data entry part; another team is in charge of this. Your job is to display the information collected in a fast loading page."

"What you know about the information saved in the competition is this:

"Here is an example of what the table should look like. The format is what many people call a Pivot Table."

Show on the overhead the following table. Explain that the "..." in the 6th column of row 1 means there is an unknown number of games in the competition. The "..." in the 1st column of row 5 means there is an unknown number of players in the competition.

Tetris (15)

Breakout(100)

Spiderman(5000)

Starcraft

...

Total

Carl Marx (stubby)

10

50

2000

8900

10960

Sam Hansen (sam)

10

80

4000

4400

8490

Barack Obama (slinky)

4

10

1000

1200

2214

...

Average Score

8

46.6

2333

4833

7221

High/Low Score

10/4

80/10

4000/1000

8900/1200

10960/2214

Distribute to the students an UML chart that was prepared to help them understand the data and how the different pieces are related. Show the sample UML on the overhead.

GameCompetitionSQL.png

"Your job is to (1) design the SQL queries, limit of 2, that will return the needed information, (2) use PHP to both execute the queries and calculate the average/high/low scores needed, and (3) display the information to the end user. While the teacher will not explicitly teach all of the skills necessary to complete this assignment, he will be available to answer questions and offer advice"

"Since you already have experience using the Big6 to solve simple problems, you will be expected to document how you use it to accomplish this new task before you. Worksheets are available in the front of the room that you will use to summarize how you used the Big6."

Distribute the document "resources.pdf".

"You have in front of you some materials that will help you learn what you might need to know. The booklet contains tutorials, articles, URLs, and some screenshots. As you advance in the project, you may refer to this booklet as well as any other resource found online or in the course textbook."

Assignment

Due Date: Two weeks from now

Deliverables:

Requirements/Restrictions on the table:

Case-Base Learning Justification


CategoryInst3265,CategoryLesson

CoolwebTeacher: Inst6325/Lessons/GameCompetitionSQL (last edited 2009-07-08 18:50:04 by KevinHansen)