Open ZZYSonny opened 4 years ago
What is the result if you use:
SELECT sid, CAST(COUNT(*) * 9 AS int) FROM enroll GROUP BY sid
What is the result if you use:
SELECT sid, CAST(COUNT(*) * 9 AS int) FROM enroll GROUP BY sid
Comparision works perfectly. It uses int comparision.
Describe the bug A column created by "COUNT(*)" uses string comparison instead of int comparison in result page.
To Reproduce Steps to reproduce the behavior:
Expected behavior 27,18 should not be included in the result Since there is no 0 in the COUNT column, after applying the filter, there should be no rows in the result. Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):