What does the \"&\" mean here:
select pt.TrTp, sum(pt.TrTp) from ProdTr pt where TransSt & 16 <> 16 // this is the row that i don´t understand.. g
This is bitwise AND. It simply checks if bit 4 in value is NOT set.
AND
I would rewrite this expression as TransSt & 16 = 0
TransSt & 16 = 0