I need a query to Join 2 tables in 1 column
something like:
SELECT name_cat, name_dog FROM cat, dog;
my results in 1 column
+-------------+
| name_animal |
+-------------+
| cat_1 |
| dog_1 |
| cat_2 |
| cat_3 |
| dog_2 |
+-------------+
This can be achieved using
UNION. Considering the same example, the query should be:The example is given here:
Hope this helps. 🙂