For Example:
DECLARE @ProductTotals TABLE
(
IsExpired bit
)
INSERT INTO @ProductTotals (IsExpired) values(1),(0)
I need a output : first row 0 second row 1.
Do not use case operator.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ruchi SharavatPosted Jul 31, 2018, 12:23 AM
Jignesh KumarPosted Aug 9, 2018, 8:58 PM
Jignesh KumarPosted Aug 5, 2018, 11:20 AM
Jignesh KumarPosted Aug 2, 2018, 3:58 AM
set IsExpired=IIF(IsExpired=0,1,0)
Kapil Singh KumawatPosted Aug 2, 2018, 1:30 AM
Jeeva SubburajPosted Jul 30, 2018, 8:52 AM