I have two table
table one is scheduletime
id | edition | time |
1 | 1 | 9:23am |
2 | 2 | 10:23am|
Try this:
SELECT
'Scheduleed' AS Caption,
Edition,
time
FROM scheduletime
UNION ALL
SELECT
'actual' AS Caption,
Edition,
time
FROM actualtime
ORDER BY Edition, Caption DESC
OUTPUT:
| CAPTION | EDITION | TIME |
----------------------------------
| Scheduleed | 1 | 9:23am |
| actual | 1 | 10:23am |
| Scheduleed | 2 | 10:23am |
| actual | 2 | 11:23am |