I am trying the below SQL Query in a View
select
ShiftDate, empid, firstin, lastout, totalhrsfilo
from
[View_Name]
where
[ShiftDate] between '2016-06-01' and '2016-06-30'
and empid in (1, 2, 3, 4, 5, 6, 7, 8)
and remarks != 'Weekly Off 1'
and remarks != 'Weekly Off 2'
I get this error:
Conversion failed when converting the nvarchar value 'External' to data type int.
From this error I am unable to determine which column the conversion error is occurring in.
View structure:
How to find which column creates error and how to fix it?