select unique FECHA,ref,detalle_1,detalle_2 from cgtb00004 where ref[11,14] = " " and ref[1,2] != "CK"