Forming SQL Queries
Table of Contents
Course Overview
The courses teaches how to use SQL to access a relational database. The
relational database model, used by Oracle, Informix, Sybase, and many other
commerical RDBMS products, has proven to be the most popular model for
structured information storage. SQL is the standard language used to
query and modify relational databases. The understanding and experience
with SQL that you acquire in this course will enable you to successfully
interact with any relational database product on the market today. This
is a hands-on class in which you will be writing your own SQL and trying it
on a live database.
Course Objectives
By the end of the course, students will be able to:
- Design a relational database schema
- Create new databases
- Create new tables, specifying attribute types
- Specify indicies and understand alternative index types
- Use the SQL SELECT statement to express queries
- Understand how and why to join multiple tables
- Understand how and why to use SQL subselects
- Use the SQL INSERT and UPDATE statements to modify your database
- Understand how and why to use transactions and locks
- Delete tables, indicies, and databases
Prerequisites
Some computer experience is required. Experience maintaining tables of
data, such as in a spreadsheet or simple database, would be very helpful.
No prior experience with SQL or relational databases is assumed.
Course Series
In addition to this class, you may be interested in our
Introduction to Perl Programming
course, which covers how to use SQL from a Perl script and how to
create web pages that interact with databases.
Course Topics
This course covers the following topics in a lecture/lab format:
- Database Fundamentals
- Relational Databases
- Relations
- Joining Two Relations
- Indices
- Different Relationship Types
- One to One
- One to Many
- Many to One
- Many to Many
- Views
- Transactions
- Locks
- Referential Integrity
- Creating Objects
- Creating and Deleting Databases
- Tables
- Creating Tables
- Modifying Table Structure
- Deleting Tables
- Creating and Deleting Indices
- Creating and Deleting Views
- Data Manipulation
- The SELECT Statement
- Aggregate Functions
- Grouping Data
- Querying Several Tables
- Table Aliases
- Subselects
- Inserting New Records
- Updating Existing Records
- Deleting Records