My Table Record
id Staff_ID DeptID
256 1049 7
257 1049 1
258 1049 4
i want above DeptID wise reterived check box (true) checked ticked.
Thanks
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Abhishek KumarRank #510 · 4.8K reputationPosted Oct 10, 2014, 5:18 AM EDT
In Designer code you need to
from databse you need to provide the result for DeptID as bit
I have added an example like below.
select CAST(CASE deptID WHEN isnull(deptID,'') THEN 0 ELSE 1 END AS BIT) as deptID from [dbo].[Students]
Hope this will help.
Abhishek
Rajeev RanjanRank #373 · 6.8K reputationPosted Oct 10, 2014, 3:19 AM EDT
Nirmal KumarCRank #6,413 · 267 reputationPosted Oct 11, 2014, 3:16 AM EDT