I have 2 tables (shop and opening hours).
I wish to return the shop opening hours as columns rather than separate rows. I've seen a few ideas on Stack but none that I can transpose to my own situation.
Stores
------
id
name
Opening Hours
-------------
store_id
dayofweek
openinghh
openingmm
closinghh
closingmm
Each store will have 7 entries in the Opening Hours table (one for each day of the week)
The returned row will be
store_id | name | Monday Opening | Monday Closing |Tues Opening | Tues Closing etc