I want to fetch my record from mysql db. I want to fetch second maximum date from the record. But i failed
Here is my code
You can use simply below query to get second max date in a table or with your requirement : -
select joiningDate from t_member order by joiningDate desc limit 1,1