SyntaxFix
Write A Post
Hire A Developer
Questions
Try this
SELECT Count(*) AS N FROM (SELECT DISTINCT Name FROM table1) AS T;
Read this for more info.