Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save tu-trinh-scale/7e3b700c21c0f49bb289be7cc4aad593 to your computer and use it in GitHub Desktop.

Select an option

Save tu-trinh-scale/7e3b700c21c0f49bb289be7cc4aad593 to your computer and use it in GitHub Desktop.
SELECT e.Symptoms
FROM Examination e
JOIN Patient p ON e.ID = p.ID
WHERE p.Admission = '+'
AND STRFTIME('%Y', e.`Examination Date`) BETWEEN '1995' AND '1999'
AND e.Thrombosis = '2'
AND e.`ANA Pattern` = 'S'
AND e.`aCL IgM` < (SELECT AVG(`aCL IgM`) + AVG(`aCL IgM`) * 1 FROM Examination);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment