English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2006-09-19 13:55:33 · 2 answers · asked by santos_pin 1 in Computers & Internet Software

2 answers

Outer Join

select suppliers.supplier_id, suppliers.supplier_name, orders.order_date
from suppliers, orders
where suppliers.supplier_id = orders.supplier_id(+);

Self Join

SELECT last_name, first_name
FROM employees
WHERE zip in
( SELECT zip
FROM employees
WHERE last_name="Chapple"
AND first_name="Mike")

2006-09-19 13:59:45 · answer #1 · answered by LorettoBoy 4 · 0 0

assuming which you have 2 tables with precisely comparable column, i'd recommend which you carry out UNION quite of OUTER connect. pick * from coachs UNION pick * from gamers; would effect like what you specify. the alternative would be utilizing pick INTO statements for each table to fill the information into the objective table and do favourite question : pick * from purpose;

2016-12-18 13:27:41 · answer #2 · answered by Anonymous · 0 0

fedest.com, questions and answers