- Nov 8, 1999
- 5,406
- 389
- 126
Not sure how to do this in SQL Server
People log in and it is recorded in a database, only one record per day. Later logins aren't important. I need to find the first day that they failed to login.
PersonID LoggedInDay
------------------------------------
1....................7/1/2009
1....................7/2/2009
1.....................7/4/2009
I need to write a query that will find that Person1 Failed to login 7/3/2009
Any ideas?
People log in and it is recorded in a database, only one record per day. Later logins aren't important. I need to find the first day that they failed to login.
PersonID LoggedInDay
------------------------------------
1....................7/1/2009
1....................7/2/2009
1.....................7/4/2009
I need to write a query that will find that Person1 Failed to login 7/3/2009
Any ideas?