I have a small table that looks like this:
PLAN YRMTH
A2BKG 197001
A2BKG 200205
A2BKG 200308
A2BKG 200806
From this table, how do I get a table such as the one below?
PLAN STARTDATE ENDDATE
A2BKG 197001 200205
A2BKG 200205 200308
A2BKG 200308 200806
A2BKG 200806 NULL
Try this