title: Is AND part of query executed always?
body: <p>I have a query in SQL Server stored procedure like this:</p>
  
  <p><code>IF (@EDITED = 1) AND (EXISTS (SELECT 1 FROM InventarizacijaZurnals WHERE RECORD_UNIQUE_ID=@RECORD_UNIQUE_ID)) ....</code></p>
  
  <p>My question is - will query part after <code>AND</code> always be executed even if first statement is <code>True</code>? I know some languages do it and some doesn't. How does it work in SQL Server? Can't seem to find a clear answer online.</p>