Unit 8: Introduction to SQL
Structured Query Language (SQL) is the main data definition language used for the creation and maintenance of databases. In this unit, we will look at basic SQL syntax, including some data definition and data manipulation language commands.
Completing this unit should take you approximately 14 hours.
8.1: Overview
Watch this lecture.
8.1.1: What Is SQL?
Read this page for an introduction to the definition and function of Structured Query Language (SQL).
Read these slides.
8.1.2: SQL Syntax
Read this page.
8.2: Data Definition Language (DDL) Commands
Watch this video.
8.2.1: Create Table
Read this tutorial to learn how to use SQL to create a database table.
8.2.2: Drop Table
Read this tutorial to learn how to use SQL to delete data from a table and to remove the structure of the table.
Watch this video.
8.2.3: Alter Table
Read this tutorial to learn how to use SQL to modify a database table.
8.3: Column and Table Level Constraints
8.3.1: Not Null
Read this page.
8.3.2: Unique
Read this page.
8.3.3: Primary Key
Read this page.
8.3.4: Foreign Key
Read this page.
8.3.5: Default
Read this page.
8.3.6: Check
Read this page.
8.4: Data Manipulation Language (DML) Commands
8.4.1: Insert Operator and Command Syntax
Read this page.
Watch this video.
Watch this video.
8.4.2: Update Operator and Command Syntax
Read this page.
8.4.3: Delete Operator and Command Syntax
Read this page.
8.4.4: Select Operator and Command Syntax
Read this page.