title: mysql to ignore all rows if column has a particular data
body: <p>I can select set of data by using joins but how I would like to select 0 rows if a column value has one particular data.
  In my example I would like to select 0 rows if the patient_id =63 and status='SCHEDULED'.</p>
  
  <p><code>select surgical_appointment_id, patient_id, status from surgical_appointment;</code></p>
  
  <p><a href="https://i.stack.imgur.com/CLoIH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CLoIH.png" alt="enter image description here"></a></p>