I have a table like the 1st 3 columns, and need to add the fourth column:
Sequence ID Last Status Current Status
1 1 New
2 1 New Open
3 1 Open
4 1 Open
5 1 Open
6 1 Open Closed
7 1 Closed
8 1 Closed
9 1 Closed
10 2 New
11 2 New Open
12 2 Open
13 2 Open Closed
14 2 Closed
15 3 New
16 3 New Open
etc.
Basically it currently only shows the last status at the point the status was changed - I need to display the 'current' status at the time.
I'm new to SQL, and thought I could use LEAD, but unfortunately it's not supported in SAS.
Thanks!