“SQL Union Operator” Ответ

SQL Union

-- UNION: distinct values (slower)
SELECT emp_name AS name from employees
UNION       
SELECT cust_name AS name from customers;

-- UNION ALL: keeps duplicates (faster)
SELECT emp_name AS name from employees
UNION ALL      
SELECT cust_name AS name from customers;
VasteMonde

SQL Union Operator

SELECT column_name(s) FROM table1
UNION
SELECT column_name(s) FROM table2;
naly moslih

Ответы похожие на “SQL Union Operator”

Смотреть популярные ответы по языку

Смотреть другие языки программирования