Not sure how to begin with this one. My table consists of:
One branch can have many entry dates (i.e, Branch # 76 has 10 entry dates).
I'm trying to show the most recent entry date & the previous entry date on a report. I know how to get the most recent entry date using Max. How would I get to the previous entry date? (Current is 2/14/2008 2:26:07 PM and the one before that is 1/30/2008 12:25:58 PM).
(or even a ranking would do i.e, Branch 76 would have a ranking of 1-10 based on entry_date and I could use 1 as current and 2 as previous).
I might mention that there are multiple branch #'s and I need to get the current & previous entry date for each branch (or rank by entry date for each branch).
Any help is appreciated!
Code:
Branch# (number, double) EntryDate (datetime, mm/dd/yyyy hh:mm:ss am/pm)
I'm trying to show the most recent entry date & the previous entry date on a report. I know how to get the most recent entry date using Max. How would I get to the previous entry date? (Current is 2/14/2008 2:26:07 PM and the one before that is 1/30/2008 12:25:58 PM).
(or even a ranking would do i.e, Branch 76 would have a ranking of 1-10 based on entry_date and I could use 1 as current and 2 as previous).
I might mention that there are multiple branch #'s and I need to get the current & previous entry date for each branch (or rank by entry date for each branch).
Any help is appreciated!
Comment