Professional Documents
Culture Documents
1. Analysis:
Understand real-world domain being captured.
2. Design:
Specify it using a database conceptual model (ER).
Translate specification to model of DBMS (Relational).
CREATE TABLE
ALTER TABLE
DROP TABLE
Data Manipulation Language (DML)
DML is a language for retrieving and updating (insert, delete, &
modify) the data in the DB.
SELECT
INSERT INTO
UPDATE
DELETE FROM
Simple Queries
Syntax:
SELECT { * | column | column_expression [,…] }
FROM table_name;
Staff
Simple Queries
Retrieve all columns & rows
Example: Retrieve all staff information.
OR
SELECT *
FROM staff;
Simple Queries
Retrieve specific columns & all rows
Example: List salaries of all staff, showing only
the staff number, the full and last name, and
salary.
Syntax:
SELECT { * | column | column_expression [,…] }
FROM table_name
WHERE condition;
Demo
• Connection name: global
• User name: Sserial-number_section-number
– ex: S1_25486
• Password: Sserial-number_section-number
– ex: S1_25486
• Hostname: 10.6.14.101
• Servicename: global11g