title: Test ALL rows exists
body: <p>It is very simple to test when row exists or not. </p>
  
  <pre><code>if exists(select * from dbo.APQP_head where zestaw=@zestaw)
  </code></pre>
  
  <p>I want to test in my query whether <strong>all rows</strong> satisfy the condition.</p>
  
  <p>I need use some query like this  </p>
  
  <pre><code>if All exists(select * from dbo.APQP_head where zestaw=@zestaw and type=3)
  </code></pre>
  
  <p>But this syntax is not correct.</p>