Transpose Columns to Row in Access SQL with INNER JOIN -


i trying hard figure out how transpose columns rows following query:

select roomcalendar.roomcalendarid, rateroomcombination.ratetypeid, rateroomcombination.roomtypeid, ratetype.ratetypename+' '+roomtypes.roomname rooms, hotels.hotelid, hotels.hotelname, roomcalendar.availability, roomcalendar.bookednights, roomcalendar.finalavailability, roomcalendar.rate, roomcalendar.pricingdate hotels inner join (roomtypes inner join (ratetype inner join (rateroomcombination inner join roomcalendar on rateroomcombination.rateroomcombinationid = roomcalendar.rateroomcombinationid) on ratetype.ratetypeid = rateroomcombination.ratetypeid) on roomtypes.roomtypeid = rateroomcombination.roomtypeid) on (hotels.hotelid = roomtypes.hotelid) , (hotels.hotelid = ratetype.hotelid) hotels.hotelid=1 , roomcalendar.pricingdate between #01/01/2016# , #31/01/2016# , roomcalendar.rateroomcombinationid=17 

the results query following:

pricingdate   rooms     availability     bookednights   finalavailability   rate 01/01/2016   double         5                 1                 4            90 02/01/2016   double         5                 2                 3            85 03/01/2016   double         5                 5                 0            93 04/01/2016   double         5                 4                 1            91 05/01/2016   double         5                 2                 3            96 etc.         etc.          etc.              etc.              etc.         etc. 

i following results:

               01/01/2016   02/01/2016   03/01/2016     04/01/2016    5/01/2016   availability       5             5            5              5            5  bookednights       1             2            5              4            2  finalavailability  4             3            5              1            3   

do have suggestion?

thank


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -