Lecture #20 (28 March 2002)
Relational Databases
| Overall Reading |
| Brookshear: |
pp. 409-417 |
Outline:
We would like to see how we can get information from a relational
database as a user/programmer.
This is a language for specifying queries of a relational database.
It was originally created by IBM but has since become standardized for
use in the industry.
Though its terminology differs somewhat from what we have introduced
above, a single SQL statement may be used to express a combination of
SELECT, PROJECT and JOIN operations.
Format:
select <list of attributes>
from <list of tables>
where <list of conditions>
Let's revisit some sample queries:
SQL statements can use additional features not mentioned in the text.
Just a few such examples are:
Next time, we will play with a very nice website titled, A
Gentle Introduction to SQL, provided by Andrew Cumming of the
School of Computing of Napier University in the UK. It provides
several nice tutorials allowing you to form your own SQL queries on existing
databases (and it goes into far more depth than we will do in this course).
comp150 Class Page
mhg@cs.luc.edu
Last modified: Mon Mar 18 21:16:07 CST 2002