Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

The DB2 Detective Game

Joanna Kubasta, Program Manager, EMC
Joanna Kubasta is a Program Manager for the WebSphere Platform System House within IBM Software Group. She is a Senior Development Manager with over 16 years experience in the software industry.
Joanne Moore, Technical Resources Program Manager, EMC
Joanne Moore is the Technical Resources Program Manager for IBM Canada Software Group. She has more than 18 years experience in the software industry and has spent most of her career in various management positions.
Matthew Bennett, Marketing Specialist, IBM
Matthew Bennett is a Marketing Specialist for IBM Canada Software Group. He is a co-op student currently studying fourth-year Business Administration and Computing and Computer Electronics at Wilfrid Laurier University.

Summary:  Here's a fun way to learn about DB2! Learn or teach the basics of DB2 and relational database with an interactive game called The DB2 Detective Game. The game teaches relational database concepts and shows how technology can be applied to solving real-life problems (the game's theme is a crime investigation). This tutorial has been updated for DB2 9.

Date:  13 Dec 2007 (Published 05 Feb 2004)
Level:  Introductory PDF:  A4 and Letter (1040 KB | 28 pages)Get Adobe® Reader®

Activity:  11595 views
Comments:  

Before you start

About this tutorial

This tutorial introduces new users of IBM DB2 to relational database concepts through a fun and interactive game called The DB2 Detective Game. It assumes no prior database knowledge or programming experience in the Structured Query Language (SQL). The recommended audience is small business owners, students, teachers or professors, or anyone wanting to gain an understanding of data management.

System requirements

To play this game, you should have IBM DB2 9 installed, the DB2Game database loaded, and the clue file running.


Download DB2 Express-C 9

  1. Download DB2 9 from the product download Web page.
  2. Choose the appropriate image, depending on your workstation platform.
  3. Click Download, and sign in with your IBM ID. If you do not have an IBM ID, you can register for free.
  4. View your personal information and the product license. Click I confirm.
  5. Select a download method (Download Director or HTTP), and click Download now.

Install DB2 Express-C 9

  1. Once the download is complete, navigate to the folder containing the downloaded file.
  2. Unzip the file.
  3. Find setup.exe in the unzipped folder, and double-click it. The DB2 Setup Launchpad appears.
  4. Within the DB2 Setup Launchpad, click Install a Product from the panel on the left.
  5. Click Install New under DB2 Express.
  6. In the installer, click Next to view the License Agreement. You will need to Accept the agreement to continue, and click Next .
  7. Choose a Typical installation, and click Next .
  8. Confirm that you plan to "Install DB2 Express Edition on this computer and save your settings in a response file," then click Next.
  9. Verify the installation directory, and click Next.
  10. On the User Information screen, set the Domain to None — use local user account, using the pull-down menu. Use db2admin as the user name, and set a password. (Optionally, you can select the LocalSystem account, but there are limitations introduced if this option is used — click Help to learn more.)
  11. Make sure the check box "Use the Same User Name and Password for the remaining DB2 Services" is checked, and click Next.
  12. On the Configure DB2 instances screen, click Next.
  13. Click Finish to start the DB2 product installation when you reach the Start copying files and create response file screen.
  14. When the installation is complete, a window with the message "Setup is complete" appears. Click Finish to complete the installation procedure.
  15. A window entitled "DB2 First Steps" now appears. Click Create profile. Your Web browser opens a page called "DB2 First Steps." This page contains many useful links to information on DB2, but it is not used during this tutorial.

Install the DB2 Detective Game database

  1. Ensure DB2 Express-C 9 is installed.
  2. Download the DB2 Detective Game database file from the Downloads section of this tutorial.
  3. Create a directory called db2game in drive C.
  4. Unzip the db2detectivefiles.zip file to that directory.
  5. From the Windows Start menu, choose All Programs > IBM DB2 > General Administration Tools > Control Center.
  6. From the menu at the top of the interface, select Tools > Command Editor. A command editor window pops up and allows you to enter SQL statements.
  7. From the menu, select Selected > Open. From the Look in drop-down menu, select C:\, and navigate to the db2game directory. From the file list, choose db2game.txt, and click OK.
  8. Click the Execute icon (the icon looks like a "Play" button).

Run the DB2 Detective Game

In order to run the game's clue file (db2game.jar), it has to be set up to open with Java Virtual Machine (JVM) software (javaw.exe, for example). To set this up:

  1. Right-click the db2game.jar file.
  2. Select Properties.
  3. Under the General tab, specify the type of file as Executable Jar File.
  4. Opens with window should reflect a JVM that you have locally installed on your machine. If this is not the case, click Change....
  5. From the Open With window, locate and select your JVM software (javaw.exe, for example).
  6. Click OK.
  7. Click Apply.
  8. Click OK.

You can now launch the db2game.jar file. Double-click the icon, or you can create a shortcut to the file for easier access.

Note: If you encounter any problems during installation, you can post a question on the DB2 Express Forum.



Create a shortcut to the DB2 Detective Game

To create a shortcut to the db2game.jar file on your desktop:

  1. Right-click anywhere on the desktop.
  2. Select New > Shortcut.
  3. In the field called "Type the location of the item", type C:\db2game\db2game.jar.
  4. Click Next.
  5. In the field called "Type a name for this shortcut", , type db2game (it should already appear by default).
  6. Click Finish.
You are now ready to play the game!

1 of 8 | Next

Comments



Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Information Management
ArticleID=140007
TutorialTitle=The DB2 Detective Game
publish-date=12132007
author1-email=
author1-email-cc=
author2-email=
author2-email-cc=
author3-email=matthewb@ca.ibm.com
author3-email-cc=

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere).

My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Try IBM PureSystems. No charge.