SELECT CASE WHEN Count(BE_BookIssuestatus IN('A')) > 0 THEN 'Available' ELSE 'Not Available' END BookStatus from BookEntity_Master
SELECT CASE WHEN ISNULL(Count(BE_BookIssuestatus IN('A')),0) > 0 THEN 'Available' ELSE 'Not Available' END BookStatus from BookEntity_Master
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)