I have two tables:
Customer Time Program
-----------------------------------
1 8:05 a
2 9:38 b
3 10:45 c
4 12:00 a
Customer Time Program
-----------------------------------
1 11:30 d
5 1:45 e
6 9:45 f
7 2:15 g
I want my table to look like:
Customer Time Program
-----------------------------------
1 8:05 a
1 11:30 d
2 9:38 b
3 10:45 c
4 12:00 a
5 1:45 e
6 9:45 f
7 2:15 g
It’s really simple, but my time columns have different names in each of the tables and each table has a different set of programs so no program id will be in both tables.
Sounds like you want a UNION. UNION concatenates the rows of two tables, preserving the columns; JOIN associates columns of two different tables into rows.
You can rename columns in the SELECTs that make the union: