An expression of non-boolean type specified; in a view
I have a view in SQL Server, which contains a WHERE clause, which is the following:
WHERE andon_digitaloutput.on_when_other_lights_off
But when I run it I get the following error:
an expression of non-boolean type specified in a context where a condition is expected
VIEW:
FROM (((andon_device ad
JOIN (SELECT
andon_digitaloutput.id AS id,
andon_digitaloutput.do_name AS do_name,
andon_digitaloutput.color AS color,
andon_digitaloutput.do_destination AS do_destination
FROM andon_digitaloutput
WHERE andon_digitaloutput.on_when_other_lights_off) AS c)
LEFT JOIN andon_device_product adp
ON ((ad.id = adp.device_id_id)))
LEFT JOIN andon_product ap
ON ((adp.product_id_id = ap.id)))
from Recent Questions - Stack Overflow https://ift.tt/35CSx1z
https://ift.tt/eA8V8J
Comments
Post a Comment