I have the following query where I am trying to create an extra line with a headers. But I am getting an error msg., because count in header is varchar , but in my select statement is int. How do I fix this problem?
Select 'Report' as 'Report' , 'Count'
Union
Select 'Report',count(*)
from table1
Select 'Report' as 'Report' , 'Count'
Union
Select 'Report',count(*)
from table1