There is a view as follows:
select t1.PID,t2.*,1 AccessCount
from Table1 t1 inner join Table2 t2 on t1.id=t2.id
Here, AccessCount
column's data type is considered as 'int
' by default by SQL server.
But when i apply sum operator on that column, it is saying Sum operator can't be applied on bit type of operand1 and this is not reproducible on all server systems.
Is there any impact of server system configuration on the query execution?