I have a table like this:
id | conn_id | read_date |
---|---|---|
1 | 1 | 2010-02-21 |
2 | 1 | 2011-02-21 |
3 | 2 | 2011-02-21 |
4 | 2 | 2013-02-21 |
5 | 2 | 2014-02-21 |
I want the second highest read_date for particular 'conn_id's i.e. I want a group by on conn_id. Please help me figure this out.