MySQL UNIONS are easy

preview_player
Показать описание
#MySQL #tutorial #course

Union tutorial example explained

-- NO DUPLICATES
SELECT first_name, last_name FROM employees
UNION
SELECT first_name, last_name FROM customers;

-- DUPLICATES OK
SELECT first_name, last_name FROM employees
UNION ALL
SELECT first_name, last_name FROM customers;
Рекомендации по теме
Комментарии
Автор

-- NO DUPLICATES
SELECT first_name, last_name FROM employees
UNION
SELECT first_name, last_name FROM customers;

-- DUPLICATES OK
SELECT first_name, last_name FROM employees
UNION ALL
SELECT first_name, last_name FROM customers;

BroCodez
Автор

I just wanted to say that sir are the greatest teacher about the matter you are teaching in the whole of internet. Thank you for doing what you are doing. Your videos have helped me a lot.

markodarth
Автор

Simple and easy to understand. Thanks!

sargata
Автор

Please could you do PHP full course? Your videos are like an oasis in the desert for people like us who have financial struggles. Thanks a million BRO!!!

nicolewynne
Автор

Professional and clear explanation thank you

rajashekar
Автор

same no. of columns having same datatype ?

whoissuhail
Автор

can we create performed union as new table with a name?

suryateja