
October 19th, 2012, 08:23 AM
|
|
Registered User
|
|
Join Date: Oct 2012
Posts: 1
Time spent in forums: 1 h 35 m 39 sec
Reputation Power: 0
|
|
|
Select max
Hello all.
I have 2 tables,
- Users with userId, userName
- Affiliations with id, affiliationId, affiliationStartDate, affiliationEndDate
How to find in a select all guys that haven't renew their affiliation before a certain date ?
So I'm looking for userName and max(affiliationEndDate) where max(affiliationEndDate) < '2012-11-01' ?
I'm using MySql 3.23.58
Yhanks for your help
|