Skip to content
Advertisement

how to delete first occurrence of each group in sas table?

I have data as follows:

I have to delete first occurrence for each ID group. so that data becomes

How to do that in sas/sql.

Advertisement

Answer

You can use a correlated subquery:

You can also incorporate this idea into a delete:

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement