title: Stored procedure SQL
body: <p>I have two tables:</p>
  
  <p>Patient(patientId, patientDOB),</p>
  
  <p>PatientMedCon(conditionId, <em>patientId)</em></p>
  
  <p>I want to create a stored procedure where I type in a conditionId and I will get a list with all the patients with this conditionId but they have to be grouped into three groups (0-12 years old, 13-20 years old and >20 years old). How can I do this??</p>