SQL-Tutorial P1241112567Pczwq Powerpoint
SQL-Tutorial P1241112567Pczwq Powerpoint
Language – The
Basics
By Hitesh Sahni
www.hiteshsahni.com
What We’re Going to Cover
Overview of SQL (This may be review for some of you)
Data Definition Language
Creating tables (we’ll just talk about this)
Data Manipulation Language
Inserting/Updating/Deleting data
Retrieving data
Single table queries
Where
Joins
Grouping
SQL
SQL is a data manipulation language.
SQL is not a programming language.
SQL commands are interpreted by the
DBMS engine.
SQL commands can be used
interactively as a query language within
the DBMS.
SQL commands can be embedded
within programming languages.
3 Types of SQL Commands
Data Definition Language (DDL):
Commands that define a database - Create,
Alter, Drop
Data Manipulation Language (DML)
Commands that maintain and query a
database.
Data Control Language (DCL)
Commands that control a database, including
administering privileges and committing data.
Data Manipulation Language
(DML)
Four basic commands:
INSERT
UPDATE
DELETE
SELECT
Inserting Data into a Table
INSERT INTO tablename (column-list)
VALUES (value-list)