Demonstration of table joins

This is a demonstration of database tables that are joined together to make a single web page ... our sample data comprises a table of programming languages (with information about each of them) and a table of courses (with some information about each of them). It is undesirable to repeat information in a table, which is why this structure was selected - however, we do need to connect up (and repeat) the data for the final presentation.

• Source of the MySQL to set up this demonstration - see here
• Source of the PHP for this page - see here

• There's an overview of joins (and a comparison of the various sorts) here
• Our MySQL courses are described here and our PHP courses here

su_idsu_namesu_authorco_idco_suco_titleco_levelco_key
8TclJohn Ousterhout1198Tcl Programming2tb
8TclJohn Ousterhout1208The Tk Toolkit3tk
8TclJohn Ousterhout1178Learning to program in Tcl1tl
7ScalaMartin Odersky[null][null][null][null][null]
4RubyYukihiro "Matz" Matsumoto1104Learning to program in Ruby1rl
4RubyYukihiro "Matz" Matsumoto1114Ruby Programming2rp
4RubyYukihiro "Matz" Matsumoto1124Rails for Ruby3rr
3PythonGuido Van Rossum1093Learning to Program in Python1yl
3PythonGuido Van Rossum1213Python Programming2yp
2PHPRasmus Lerdorf1042Learning to Program in PHP1pf
2PHPRasmus Lerdorf1062PHP Programming2ph
2PHPRasmus Lerdorf1072OO Programming in PHP3po
2PHPRasmus Lerdorf1082PHP Techniques Workshop3pt
1PerlLarry Wall1011Learning to program in Perl1lp
1PerlLarry Wall1021Perl for Larger Projects3pl
1PerlLarry Wall1051Perl Programming2pp
1PerlLarry Wall1031Using Perl on the Web3pw
5LuaRoberto Ierusalimschy1165Lua Programming2ub
5LuaRoberto Ierusalimschy1155Learning to program in Lua1ul
11Java- -12811Apache httpd and Tomcat Deployment3at
11Java- -12711Java Bootcamp2bj
11Java- -12611Learning to Program in Java1sj
10Go!Robert Griesemer, Ken Thompson, Rob Pike[null][null][null][null][null]
[null][null][null]1249Introduction to Linux Administration2la
[null][null][null]1239Linux Basics1lb
[null][null][null]1259Linux Web Server3lw
[null][null][null]1146MySQL1mq


Training sample © 2012, WELL HOUSE CONSULTANTS LTD
This is http://www.wellho.net/demo/mysql_joins.php
See source code here • More examples - same topic here
Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
Phone: +44 (0) 1225 708 225 • EMAIL: info@wellho.net • WEB: http://www.wellho.net