- select top 1 fobsurl from tattachment t3 where ownertable='HYCONFIRMATIONORDER' and ownerid=t.hyconfirmationorid and type='횅훰데渡응暠'
+ select top 1 fobsurl from tattachment t3 where ownertable='HYCONFIRMATIONORDER' and ownerid=t.hyconfirmationorid and type='횅훰데渡응暠' order by createdate desc
)fobsurl
from hyconfirmationorder t
join hyWorkorder t1 on t.fparentid=t1.hyWorkorderid