I was wondering what is difference between Count(*) and Count(1) for the query optimization. On researching on it I came across Ask Tom which is for oracle
and states that both are identical in terms of time taken for execution.
- Is is also applicable to
SQL Server 2008
? - And if yes then why are there are two diff function for the same?
- If no which to use for better optimization?
- Are there any cases where should we use Count(*) over Count(1) and vice-a-verse