Ver originalSELECT ....,CASE catid WHEN Valorbuscado THEN 'true' ELSE 'false' END AS [CatSel]FROM ....WHERE ...