I guess this is a 2 part question.
Can you divide two scalar queries by one another?
This obviously does not do it.
Secondly, what would be a good method of getting the percentage of flagged records if the division is just bad form?
I am using SQL Server 2008 Management Studio.
Thank you.
Patrick
Can you divide two scalar queries by one another?
This obviously does not do it.
Code:
SELECT COUNT(*)
FROM myTable
WHERE myFlag=1 /
SELECT COUNT(*)
FROM myTable
Secondly, what would be a good method of getting the percentage of flagged records if the division is just bad form?
I am using SQL Server 2008 Management Studio.
Thank you.
Patrick