I am having an issue removing duplicated rows. I've tried using ORDER BY to remove duplicates but it needs to be more sophisticated than that and I am not sure how to do that. I have some duplicate rows that I would want to remove the one where the account number is null but what is making it complicated is that there are some rows that there is no account number at all and I want to keep those.
For example:
AppID | First Name | Last Name | SSN | Account Number
Keep: 1021 John Doe ******** 124989
Remove 1021 John Doe ******** NULL
Keep: 1287 Mary Smith ******** NULL