SELECT X AS 'First', Null as 'Second' FROM The_Table WHERE The_Value = 'y' Union SELECT null as 'First', X AS 'Second' FROM The_Table WHERE The_Value = 'z'