SELECT KAMAR,
MAX(IF(tanggalreservasi = '2014-12-01', NOMORRESERVASI, NULL)) '2014-12-01',
MAX(IF(tanggalreservasi = '2014-12-02', NOMORRESERVASI, NULL)) '2014-12-02',
MAX(IF(tanggalreservasi = '2014-12-03', NOMORRESERVASI, NULL)) '2014-12-03',
MAX(IF(tanggalreservasi = '2014-12-04', NOMORRESERVASI, NULL)) '2014-12-04',
MAX(IF(tanggalreservasi = '2014-12-05', NOMORRESERVASI, NULL)) '2014-12-05'
FROM matrikreservasi
GROUP BY IDmatrikreservasi