| Unique ID | Type | TypeID |
|---|---|---|
| 10001 | Company | 123422 |
| 10002 | Company | 123477 |
| 10002 | Subsidiary | 12000 |
| 10005 | Company | 123455 |
| 10005 | Subsidiary | 12125 |
| 10006 | Subsidiary | 12300 |
So I have a table where a unique ID can have either or one or two rows of data associated with it. I want to extract the rows and delete those unique IDs where it only has one row of information. For example, the top one and the bottom one from my data set above I don't need it. How can I do this in a PROC SQL step? Many thanks!
I haven't tried anything yet.
I cannot think why you would use PROC SQL for something like that. Just use a data step.
If you really had to do it with SQL you could use a HAVING clause.