SELECT ---* FID, FNumber, FName, FDepartment, FOffice, FYear, FMonth, DAYNAME, DAY FROM PAIBAN unpivot(DAY FOR DAYNAME IN(FDAY1,FDAY2,FDAY3,FDAY4,FDAY5,FDAY6,FDAY7,FDAY8,FDAY9,FDAY10,FDAY11,FDAY12,FDAY13,FDAY14,FDAY15,FDAY16,FDAY17,FDAY18,FDAY19,FDAY20,FDAY21,FDAY22,FDAY23,FDAY24,FDAY25,FDAY26,FDAY27,FDAY28,FDAY29,FDAY30,FDAY31)) UPWHERE 1=1