Yazılım

SQL bool çeviri

SELECT CASE WHEN p.[GenericCatalogID] > 0 
            THEN CAST(1 AS BIT) 
            ELSE CAST(0 AS BIT) 
       END as IsGeneric
https://stackoverflow.com/questions/19597908/how-to-return-true-or-false-from-tsql-using-case-when