Thread
:
Select unique
View Single Post
#
2
(
permalink
)
02-29-2008, 08:49 AM
Simon Hayes
Posts: n/a
Re: Select unique
Something like this?
select
CID,
convert(char(8), tmstamp, 112) as 'Day',
max(tmstamp) as 'Last Logout'
from
dbo.SomeTable
group by
CID,
convert(char(8), tmstamp, 112)
order by
'CID', 'Day'
Simon
Simon Hayes