Advertisement
elena1234

UNION in MySQL

Feb 21st, 2023
1,022
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.14 KB | None | 0 0
  1. SELECT
  2.   'advisor' as type,
  3.   first_name,
  4.   last_name
  5. FROM advisor
  6. UNION
  7. SELECT
  8.   'staff' as type,
  9.   first_name,
  10.   last_name
  11. FROM staff;
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement