Use table alias in table join : Introduction « Table Joins « Oracle PL/SQL Tutorial






SQL>
SQL> CREATE TABLE employee (
  2  id           number,
  3  name         varchar(100),
  4  birth_date   date,
  5  gender       varchar2(30) );

Table created.

SQL>
SQL> CREATE TABLE employee_evaluation (
  2  id           number,
  3  title        varchar2(100),
  4  written_date date );

Table created.

SQL>
SQL>
SQL> SELECT a.id,
  2         a.name,
  3         p.title,
  4         p.written_date
  5  FROM   employee a,
  6         employee_evaluation p
  7  WHERE  a.id = p.id
  8  ORDER BY a.name,
  9         p.written_date,
 10         p.title;

no rows selected

SQL>
SQL> drop table employee;

Table dropped.

SQL>
SQL> drop table employee_evaluation;

Table dropped.








7.1.Introduction
7.1.1.Performing SELECT Statements that Use More than Two Tables
7.1.2.Three different types of joins:
7.1.3.Understanding Non-equijoins
7.1.4.Performing SELECT Statements that Use Two Tables
7.1.5.Example simple join.
7.1.6.Use table alias in table join
7.1.7.Convert subqueries to JOINs
7.1.8.autotrace ansi full outer join