I have a table with the following example format:
ID Name 
1  NULL
1  NULL
2  HELLO 
3  NULL
3  BYE
My goal is to remove repeated lines with same IDS, but with restrictions. According to the example, I need to remove a row with ID-1, and the row with ID-3 and with no value (NULL).
I would stick with the table:
ID Name 
1  NULL
2  HELLO 
3  BYE
How can I do this in sql server? thank you
