Stduents:
Expand|Select|Wrap|Line Numbers
- ID Name DOB
- ==========================
- 1 XYZ 01/01/2000
Expand|Select|Wrap|Line Numbers
- AdmissionID Admission No Date of Admission StudentID
- ==============================================================
- 1 1234 25/05/2016 1
- 2 4567 28/04/2015 1
- 3 7890 25/08/2015 1
Admissions.StudentID = Students.ID
Now the question is that I want a query resulting in a record like:
Expand|Select|Wrap|Line Numbers
- StudentID Name AdmissionID Date of Admission Admissoin No
- ========================================================================
- 1 XYZ 3 25/08/2015 7890
I know that that the maximum date of admission can be found using max(date of admission).
But the help is needed for the record containing the second last date of admission. Thanking in anticipation.