I simplified the schema for brevity but it can be applied to your schema as well:
create table tbl(day varchar(20), amfrom int, amto int);
insert into tbl values ('Monday', 9, null);
insert into tbl values ('Tuesday', 10, 11);
select
MondayAmFrom,
MondayAmTo,
TuesdayAmFrom,
TuesdayAmTo
from
(
select
amfrom as MondayAmFrom,
amto as MondayAmTo
from tbl where day = 'Monday'
) as mon
,
(
select
amfrom as TuesdayAmFrom,
amto as TuesdayAmTo
from tbl where day = 'Tuesday'
) as tue;
This is the output:
MONDAYAMFROM MONDAYAMTO TUESDAYAMFROM TUESDAYAMTO
9 (null) 10 11
We create subqueries selecting each day. Then we join them in the main table. The days of the week need to be known which is the case in your example. There are only 7 of them.
Select case when then
will not work here because it will create 7 rows and it will be difficult to group them. The problem with grouping is that your schema supports nulls.