SELECT id, COUNT(id) FROM User GROUP BY id HAVING COUNT(id) > 1
SELECT COUNT(1) AS NumberOfGreaterThan0 FROM YourTable WHERE col1 >=0