Chapter 3 SQL
Chapter 3 SQL
Chapter 3 SQL
SQL
Introduction
• Structured Query Language (SQL) is a query language
that is standardized for RDBMS.
• SQL Statements (commonly referred to as 'queries') are
run to retrieve or modify the requested information from
the database
• SQL supports:
• Data Definition Language (DDL), and
• Data Manipulation Language (DML)
• Update
UPDATE [Emplyees] SET [name]=‘BBB', [empDate]='1-1-2001'
WHERE [empID] = 1
• Delete
DELETE FROM [Emplyees]
WHERE [empID] = 1
NOTE THAT NEW: keyword represents the new row to be inserted, used only with BEFORE
OLD: keyword that represents the row which was modified, used with AFTER