title: Return True False On SQL When Evaluating Repeated Rows
body: <p>I want to create a stored procedure that only returns either true or false when the following happens:</p>
  
  <p>I have a table called <code>GAS_cards</code></p>
  
  <pre><code>idCard INT PK
  idCardType INT
  </code></pre>
  
  <p>I specify various idCards (so far I have this)</p>
  
  <pre><code>CREATE PROCEDURE [dbo].[GAS_cards_spEvaluateCards_many] 
      @cardString VARCHAR(100)
  AS 
  
  SELECT * 
  FROM GAS_cards 
  WHERE (@cardString = '-1' OR ',' + @cardString + ',' LIKE '%,' + CONVERT(VARCHAR, idCard) + ',%') 
  </code></pre>
  
  <p>What I want to do here is the following evaluation. 
  Let's say that the query returns 10 rows. Everything depends on the <code>idCardType</code>. If at least one value equals 3, the rest also have to be 3; else it should return a false.</p>