(case when @InAct = 1 then (pck.packageID = (select pa.packageID from PakacgeTb pa where (pck.packageID = pa.packageID)
and
((cast(pck.expirydate as date) > cast(getdate() as date)) and cast(pck.BalanceVisit as decimal) > cast(0.00 as decimal)))))
i am trying to use the where case condition i don't know how to use it. This whole code is used after a where condition.