Академический Документы
Профессиональный Документы
Культура Документы
SQL Statements
SELECT
INSERT
UPDATE
DELETE
MERGE
CREATE
ALTER
DROP
RENAME
TRUNCATE
COMMIT
ROLLBACK
SAVEPOINT
GRANT
REVOKE
Data retrieval
Data manipulation language (DML)
Transaction control
Tables
Used
in
the
Course
EMPLOYEES
DEPARTMENTS
JOB_GRADES
*|{[DISTINCT]
*|{[DISTINCT] column|expression
column|expression [alias],...}
[alias],...}
table;
table;
retrieve all
employees
in department
90
Using Comparison
Conditions
SELECT last_name, salary
FROM
employees
WHERE salary <= 3000;
The common columns in joined tables are usually the primary key
of the dominant table and the foreign key of the dependent table in
1:M relationships
15
17
d.department_id, d.location_id
employees e , departments d
e.department_id = d.department_id;