The following statement returns only those rows from the employee table whose values in the empno column match the values in the mgr_no column of the department table.
This example uses the table_name.* form of the select list.
SELECT employee.* FROM employee, department WHERE employee.empno=department.mgr_no;