Presentation is loading. Please wait.

Presentation is loading. Please wait.

June 23, 2001Database Creation Review and Exercises1 Database Creation Review 10:00 - 10:30 Team Building Exercise ……………………….. John 10:30 - 11:30 Database.

Similar presentations


Presentation on theme: "June 23, 2001Database Creation Review and Exercises1 Database Creation Review 10:00 - 10:30 Team Building Exercise ……………………….. John 10:30 - 11:30 Database."— Presentation transcript:

1 June 23, 2001Database Creation Review and Exercises1 Database Creation Review 10:00 - 10:30 Team Building Exercise ……………………….. John 10:30 - 11:30 Database Management in Access..……..…… Calvin 11:30 - 12:00 Lunch 12:00 - 12:45 Database Usage in ASP Pages …..………….. Charles 12:45 - 01:00 Team Homework Assignment ………………. John

2 June 23, 2001Database Creation Review and Exercises2 Competition Requirements You will be required to: –Design a database –Instantiate that database -- using Microsoft Access –Add, revise, delete, select database records -- Using ADO's During development -- using Access –Populate database with test data –Modify the database schema –Add, revise, delete, and view records –Test SQL statements –View SQL documentation

3 June 23, 2001Database Creation Review and Exercises3 Managing Your Database Developer Design Projectx.mdb Microsoft Access Instantiate database Add test records Initially: Modify database schema Add, revise, delete, view records Test SQL statements View SQL documentation Subsequently: page3.asp page2.asp page1.asp Notepad Create/modify files User Web Pages

4 June 23, 2001Database Creation Review and Exercises4 Getting Access Help During competition: –Use Access Help facility When web access available: –http://www.rd-robotics.com/accesscommunity/tutes/ –http://mis.bus.sfu.ca/tutorials/MSAccess/tutorials_main.html

5 June 23, 2001Database Creation Review and Exercises5 So Let's Build A Database On http://millieneorr.brinkster.net See "Creating a database" Create goodbike.mdb Create table: bikespec Fields: –Model Name (20 characters text) –Model Number (12 characters text - key field) –Quantity available (Integer) Populate database

6 June 23, 2001Database Creation Review and Exercises6 Change the Bikespec Table Add the following fields: –Wheel size (integer) –Price (currency) –Model expiration date (date) –Reorder quantity (number) –Description (memo) Did you remember to flag the key field?? Populate fields

7 June 23, 2001Database Creation Review and Exercises7 Change the goodbike database Problem statement: "The Goodbike company needs to maintain a list of its customers so that it can: Provide them periodic updates product recalls or service bulletins Market new products Validate a customer's product registration" As a team on the board: –Show your design to meet this requirement Hint: You need to create a new table

8 June 23, 2001Database Creation Review and Exercises8 Querying Your Database - The SQL SELECT Command - Syntax: SELECT MyField1, MyField2, MyFieldx FROM MyTable _ ORDER BY MyField2, Myfield3 _ WHERE MyField1="SomeValue" AND Myfieldx > 3 You can use "wild cards" SELECT * FROM MyTable ORDER BY MyField2 Legend: Red = Required Syntax Green = Optional Syntax Brown = Values you provide

9 June 23, 2001Database Creation Review and Exercises9 Creating a SQL Query by Example Can use Access GUI to define query Then select "SQL View" from the "View" menu Specific Steps: 1) Open database 2) Select "Queries" Tab 3) Press the "NEW" button 4) Select "Design View" from dialogue box 5) Select table to be queried 6) Select fields to be used in the query 7) Define display, selection, and sort criteria 8) Show SQL command by selecting "SQL View" from "View Menu" Example shown on: –http://www.rd-robotics.com/accesscommunity/tutes/

10 June 23, 2001Database Creation Review and Exercises10 SQL Query Help Use Access HELP HELP --> Contents and Index Select index tab Click on SQL, defining queries

11 June 23, 2001Database Creation Review and Exercises11 Homework Build 5 generic web page components –1 person creates a css file for the project –1 person creates the Access database and populates it for test purposes (using the Acess GUI) –1 person creates the the default.asp file using procedures to create standard header and footer –1 person writes a function to open the database and a procedure for creating a recordset for reporting –1 person writes a procedure for generating a report using all records and fields from the recordset Next week you will receive specific project data requirements The architecture our your project looks like: default.aspprojectx.db Project's Home Page report.asp Project's Database Report


Download ppt "June 23, 2001Database Creation Review and Exercises1 Database Creation Review 10:00 - 10:30 Team Building Exercise ……………………….. John 10:30 - 11:30 Database."

Similar presentations


Ads by Google