I have table like this:
CreateDate | UserID
2012-01-1 | 1
2012-01-10 | 2
2012-01-20 | 3
2012-02-2 | 4
2012-02-11 | 1
2012-02-22 | 2
2012-03-5 | 3
2012-03-13 | 4
2012-03-17 | 5
I need the query to show UserID which created after 1 February 2013 and not exist in database befor 1 February 2013
From the above example the result must be:
CreateDate | UserID
2012-02-2 | 4
2012-03-13 | 4
2012-03-17 | 5
Can it resolved only in single query without Stored Procedure?