Using COUNT and Return Percentage Against SUM of Records
问题 Pretty simple question I suppose, but I can't find the answer on here! I am trying to calculate the volume of records based on a WHERE clause, as well as return a percentage of those records based on the same where clause. The percentage would be calculated against the total amount of records in the database. For example, I count all my records that meet "MyCondition": SELECT COUNT(*) FROM [MyTable] WHERE Condition='MyCondition' This works fine. However, how does one take that count, and