I have a table storing membership renewal details.
MemberID, RenewalDate, RenewalMonths, etc
ExpiryDate can be calculated as RenewalDate + (RenewalMonths * 30)
Each member can have several renewals in this file
I need to run a query that will show whether a membership is active or has expired.
Output would be something like: MemberID MembershipStatus.
MembershipStatus should be "Active" or "Expired" depending on whether latest ExpiryDate > Date()
Conceptualy thats what i need to do but have not been able to do it for the past 3 days!
I do not want to use 'SELECT TOP...' as in JET SQL because it would not work on a different RDBMS.
Could somebody pls help me out
TIA
MemberID, RenewalDate, RenewalMonths, etc
ExpiryDate can be calculated as RenewalDate + (RenewalMonths * 30)
Each member can have several renewals in this file
I need to run a query that will show whether a membership is active or has expired.
Output would be something like: MemberID MembershipStatus.
MembershipStatus should be "Active" or "Expired" depending on whether latest ExpiryDate > Date()
Conceptualy thats what i need to do but have not been able to do it for the past 3 days!
I do not want to use 'SELECT TOP...' as in JET SQL because it would not work on a different RDBMS.
Could somebody pls help me out
TIA