I have a table column like this::
SendID
0
0
0
0
0
22
22
22
33
33
I wants the following result:
SendID
0
0
0
0
0
22
33
Actually I want select all the zeros and distinct digit except 0.
Thanks in advance.
Using
UNION, you can combine a query that selects all of the zeroes with anotherDISTINCTone that selects everything else only once: