How to select duplicate rows with conditions?
I have a table with duplicate IDs, but some of the values from other rows are missing. What I need to do is to delete the duplicate row with missing information and retain the complete one.
For example:
| ID |
Name |
Age |
| 1 |
Jane |
12 |
| 1 |
Jane |
|
| 2 |
John |
16 |
| 3 |
Anna |
|
| 3 |
Anna |
15 |
| 4 |
Mark |
|
Rows 3, 5 should be deleted. I know "Select duplicate rows( Match( :Col1, :Col2 ) );" but I'm not sure how to specify to select and delete those with blank :Age. Please help