Hi guys,
i'm feeling brain dead today and cant seem to work this out. i ashamed as it seems to be such a basic problem.
I have an sql query: select "distinct item1, item2..." and want to find the number of rows this returns using the count() function, but i cant seem to get the syntax correct.
this is for MSSQL. i have the answer just by looking at the number of rows returned in QA, but want to know what it should be in t-sql. i thought it wouldve been something like: "select count(distinct item1,item2)..." but this just gives me an error.
thanks
Sab
i'm feeling brain dead today and cant seem to work this out. i ashamed as it seems to be such a basic problem.
I have an sql query: select "distinct item1, item2..." and want to find the number of rows this returns using the count() function, but i cant seem to get the syntax correct.
this is for MSSQL. i have the answer just by looking at the number of rows returned in QA, but want to know what it should be in t-sql. i thought it wouldve been something like: "select count(distinct item1,item2)..." but this just gives me an error.
thanks
Sab