select pr.Person as 'รหัส',c.contDateTime as 'เวลาที่เติมเงิน'
From tPer pr inner join tDateTime c on pr.pCode=c.cCode
inner join tDate ct on ct.conDate=c.contDateTime
WHERE CONVERT(nvarchar(10),c.contDateTime,126)='2012-01-19'
ORDER by pr.Person asc
select pr.Person as 'รหัส',c.contDateTime as 'เวลาที่เติมเงิน'
From tPer pr inner join tDateTime c on pr.pCode=c.cCode
inner join tDate ct on CONVERT(ct.conDate , 101) = CONVERT(c.contDateTime , 101)
WHERE CONVERT(c.contDateTime,101)='19-Jan-2012'
ORDER by pr.Person asc
SELECT pr.Person as 'รหัส',c.contDateTime as 'เวลาที่เติมเงิน'
From tPer pr inner join tDateTime c on pr.pCode=c.cCode
inner join tDate ct on CONVERT(ct.conDate , 126) = CONVERT(c.contDateTime , 126)
WHERE CONVERT(nvarchar(10),c.contDateTime,126)='2012-01-19'
ORDER by pr.Person asc