Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Login user search

Author  Topic 

x0x0
Starting Member

2 Posts

Posted - 2011-02-25 : 18:57:47
hi
i have a table like



userid,username,logindate


how to find the user name and date of a user who logged in more than once during any given day.

pk_bohra
Master Smack Fu Yak Hacker

1182 Posts

Posted - 2011-02-26 : 00:05:01
is this ?

Select userid,username,logindate
from yourtable
group by userid,username,logindate
having count(*) >1

If this is not your are looking for then provide some sample data.
Go to Top of Page
   

- Advertisement -