contoh :
select top 5 substring(em_emplname,
charindex(' ',em_emplname)+1 ,
len(em_emplname)) as [Last Name]
from tbmst_Employee where em_emplcode = 20935
charindex(' ',em_emplname)+1 ,
len(em_emplname)) as [Last Name]
from tbmst_Employee where em_emplcode = 20935
itu kata kedua sampai terakhir muncul gitu gan, gmn kalau yang muncul kata kedua aja
ReplyDelete