If this is a valid SQL syntax, what does it do? › Forums › SQL › If this is a valid SQL syntax, what does it do? Tagged: COUNT clause in SQL This topic has 0 replies, 1 voice, and was last updated 3 years, 5 months ago by Admin. Viewing 1 post (of 1 total) Author Posts August 8, 2022 at 1:07 pm #434 AdminParticipant I mistakenly came out with this query: SELECT DISTINCT COUNT (business_id) FROM hours The above did come out with result, which is count of all the business-ids of the table. I understand it should then be a valid syntax. Any explanation will be helpful, especially how it is different from the below query. My query should have been: SELECT COUNT (DISTINCT business_id) FROM hours Reply If this is a valid SQL syntaxt, what does it do? Author Posts Viewing 1 post (of 1 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In