Hi,
The below code prints A as output, but when doing vice-versa as @A=7 and @B=4 its not working.. kindly let me know what '&' operator does to validate
DECLARE @A int
DECLARE @B int
set @A=4
set @B=7
if @A&@B=@A
print 'A'
Thanks
Sathish

Vinitha TRank #8,005 · 230 reputationPosted Nov 18, 2021, 10:31 AM EST
Suraj KumarRank #353 · 7.1K reputationPosted May 9, 2019, 5:16 AM EDT
sathishRank #4,713 · 329 reputationPosted May 9, 2019, 5:23 AM EDT