My table has these info
T123
T153
T174
Basic SQL count works fine which results to (3).. but when I use this function needed for my query the output is 4.
COUNT(DISTINCT CASE WHEN id LIKE '%T%' THEN RIGHT(ID, 3) ELSE 0 END) AS Count
what's wrong with my query,,, im stuck in hours :(
Please help