Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
I want to check the condition,

1) If prev month details are available then use that condition in where clause
2) If Prev month details are not available , then use before month date, that is also not available then display before month..

EX:
ID       Date
1        2012-04-20
1        2012-08-2
1        2013-02-23

In this example previous month details are available. So, display those details using that condition

ID       Date
1        2012-04-20
1        2012-08-2


In the above ex i don't have prev month details. now , i want to consider Aug2012 details .
Posted
Updated 1-Mar-13 0:05am
v2
Comments
Maciej Los 3-Mar-13 13:56pm    
Please, be more specific and provide more details.
What have you done till now? What are requirements?
gvprabu 4-Mar-13 6:39am    
Are you going to display Date Details based on ID or not..?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900