Inner join using the WHERE clause

Using the WHERE clause to perform this same join as in the Inner join using JOIN syntax topic is written by entering both the join condition and the additional selection condition in the WHERE clause.

The tables to be joined are listed in the FROM clause, separated by commas.

  SELECT EMPNO, LASTNAME, PROJNO
    FROM CORPDATA.EMPLOYEE, CORPDATA.PROJECT
    WHERE EMPNO = RESPEMP
    AND LASTNAME > 'S'

This query returns the same output as the previous example.