I have two tables:
work:
id w_date other stuff
1 2017-05-10
1 2017-05-08
3 2017-05-17
home:
id h_date other stuff
1 2017-05-01
4 2017-05-06
1 2017-05-14
Now I need a query that I get all dates where id is 1.
Something like:
Select *
from (
select w_date as date
from work where id=1
),
(select h_date as date from home where id=1)
Result should be:
id date
1 2017-05-01
1 2017-05-08
1 2017-05-10
1 2017-05-14
Any ideas?
UNION