Professional Documents
Culture Documents
Lecture3 DBS
Lecture3 DBS
Lecture 3
Dr. Mohammad Assaad 1
SQL Queries
⚫ It must be portable.
Dr. Mohammad Assaad 4
Objectives of SQL
⚫ SQL is a transform-oriented language with 3 major
components:
⚫ A Data Definition Language (DDL) for defining database
structure. It contains three commands (Create table, Alter
table, Drop table).
⚫ it is essentially free-format.
SELECT *
FROM Staff;
SELECT propertyNo
FROM Viewing;
SELECT *
FROM Branch
WHERE city = ‘London’ OR city = ‘Glasgow’;