|
This tutorial is intended to be used "hands-on". The student should be reading the material and trying out the examples. The output from the SQL engine should appear in a new window.
If no results window appears it may because:
When learning any new skill students should start with the basics. The simple functions should be practised over and over until he or she is comfortable with them and confident enough to execute them almost automatically.
Only when the student has absorbed the basics should more complex techniques be attempted. Even if you find this style pedestrian you must not skip material unless
The answers to the questions are given. Do not look at the answers until you have had a go yourself.
The engines run a variety of SQL implementations on a number of different machines. You can see from the table below which of the engines is working right now.
The following links may repair broken or slow engines: Darius Priya Ryka Justin Gumbo
Every SQL attempt is logged along with information that can be gathered about the user (net address and an identifying cookie). This data is available is not held securely and will be given away to anyone who is interested - just ask.
It is unlikely that anyone could or would monitor an individual, users should be aware that the possibilty exists. Paranoid users should avoid using sqlpass-latam Engines.
The data is collected and analysed for educational research. We occasionally conduct experiments and have had several successful student projects which have used the tutorial.
You may wish to use your own SQL engine - the "connected" servers will inevitably have a variable performance.
Implementation | Adherence to SQL Standard | Installation notes | Platforms |
---|---|---|---|
Mimer | excellent | free downloads available for developers | unix, windows ... |
Oracle | good | free downloads available, hideous installation | unix, windows ... |
MS SQL Server | good | 30 day trial available | Windows NT or 2000 or more |
MySQL | no views or nested SELECT | free, easy to install | unix, windows... |
PostgreSQL | very good | free, easy to install | unix only |
Access | many "quirks", none serious | easy to install | windows only |
The zip file gisq.zip contains all of the tutorial material.
The data is available in Microsoft Access format gisq.mdb
SQL commands to create and populate the tables are available.
The individual tables are available in tab delimited format. This can be imported into pretty well anything.
Tutorial | SQL commands | Tables plain text (tab delimited) |
---|---|---|
CIA World Factbook | cia | |
Movie Database | movie actor casting | |
Holyrood | tabmsp.txt tabparty.txt | |
ACME products | badguy product shipped receipt | |
Edinburgh Buses | stops route | |
Top of the Pops | tabtotp.txt | |
Dressmaker | ||
Musician | ||
Southwind | ||
Congestion Charging |
This material was designed to be used in supervised tutorials at Napier University. Teachers from other institutions are welcome to use it in any way they see fit, however I have a few requests/suggestions:
The red error messages that appear in tutorial one are generated in JavaScript from code developed by Emma Oram as part of her excellent MSc. project 2002.
Readers should assume that errors or omissions in the data are mine and not the fault of following sources.
Thanks are due to the following fine organisations: