Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
INTRODUCTION
Oracle SQL
SQL
• Security mechanisms
• Backup and recovery
• Space management
• Open connectivity
• Tools and applications
SQL AND ORACLE’S SQL*PLUS
EMP_SSN EMP_FIRST_NAME
--------- ---------------
999111111 Douglas
Join Operation
• A join operation combines data from two or
more tables based upon one or more common
column values.
• The relational join is a very powerful operation
because it allows users to investigate
relationships among data elements.
• The following SELECT statement displays
column information from both the employee
and department tables.
Example
The tables are joined upon values stored in the department
number columns named emp_dpt_number in the
employee table and dpt_no in the department table.
SELECT emp_ssn, emp_first_name, emp_last_name,
emp_dpt_number
FROM employee e, department d
WHERE e.emp_dpt_number = d.dpt_no;
contd
SQL*PLUS
SELECT *
FROM employee;
select *
from employee;
SQL Keywords
• In some cases keywords can be abbreviated.