|
Hits: 40
Two Table Join
 0.0
Outputting data from two tables is almost as easy as displaying from one. This example utilizes two
tables with state information on them. The first table (state_order) contains state abbreviations (state), state names (statename) the year each state was admitted into the union (year) and the numeric order they entered in (entered). The second table (state_capitals) contains state abbreviations (state), state names (state) and state capitals (capital). The where statement looks to make a match on the field that each table has in common to ouput the correct capital with all the info from the state_order table.
Platform(s): n/a
Date: Jun, 26 2000
Author: http://www.codeave.com/asp/code.asp?u_log=20
Ratings
|
Number of Ratings: 0 Votes
|
Others Scripts
ASP/Scripts and Components/Polls and Voting
ASP/Tips and Tutorials/Counters
ASP/Scripts and Components/Counters/Text Based
ASP/Tips and Tutorials/Database-related
ASP/Scripts and Components/News Publishing
ASP/Tips and Tutorials/Cookies and Sessions
ASP/Tips and Tutorials/Database-related
ASP/Tips and Tutorials/Date and Time
ASP/Tips and Tutorials/Error Handling
JavaScript/Scripts and Programs/Image Effects/Image Display
ASP/Scripts and Components/Server Management
ASP/Tips and Tutorials/Database-related
ASP/Tips and Tutorials/Database-related
ASP/Scripts and Components/Site Recommendation
ASP/Tips and Tutorials/Database-related
ASP/Tips and Tutorials/Miscellaneous
ASP/Scripts and Components/Database Tools
JavaScript/Scripts and Programs/Forms
ASP/Scripts and Components/Searching/Web Search
JavaScript/Scripts and Programs/Alerts and Prompts
JavaScript/Scripts and Programs/Alerts and Prompts
ASP/Tips and Tutorials/Excel and ASP
ASP/Tips and Tutorials/Database-related
ASP/Scripts and Components/Click Tracking
ASP/Tips and Tutorials/File Manipulation
ASP/Scripts and Components/Counters/Text Based
ASP/Tips and Tutorials/File Manipulation
ASP/Tips and Tutorials/Content Management
ASP/Scripts and Components/Development Tools/Cookies
JavaScript/Scripts and Programs/Windows and Frames
ASP/Tips and Tutorials/File Manipulation
ASP/Tips and Tutorials/Database-related
ASP/Tips and Tutorials/Development
ASP/Tips and Tutorials/Graphs and Charts
ASP/Tips and Tutorials/Excel and ASP
ASP/Tips and Tutorials/File Manipulation
ASP/Tips and Tutorials/Database-related
ASP/Tips and Tutorials/Database-related
ASP/Tips and Tutorials/Excel and ASP
ASP/Tips and Tutorials/Site Navigation
ASP/Tips and Tutorials/Error Handling
ASP/Tips and Tutorials/Date and Time
|