《oracle学课件》尚硅谷_宋红康_04_多表查询.ppt

《oracle学课件》尚硅谷_宋红康_04_多表查询.ppt

《oracle学课件》尚硅谷_宋红康_04_多表查询

Example of LEFT OUTER JOIN This query retrieves all rows in the EMPLOYEES table, which is the left table even if there is no match in the DEPARTMENTS table. This query was completed in earlier releases as follows: SELECT e.last_name, e.department_id, d.department_name FROM employees e, departments d WHERE d.department_id (+) = e.department_id; Example of RIGHT OUTER JOIN This query retrieves all rows in the DEPARTMENTS table, which is the right table even if there is no match in the EMPLOYEES table. This query was completed in earlier releases as follows: SELECT e.last_name,

文档评论(0)

1亿VIP精品文档

相关文档