Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

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

Select an option

Save tu-trinh-scale/ac1f0d06959e4f72910f57df940f8458 to your computer and use it in GitHub Desktop.
SELECT E.Symptoms
FROM Examination E
INNER JOIN Patient P ON E.ID = P.ID
WHERE E.Thrombosis = '2'
AND E.`ANA Pattern` = 'S'
AND strftime('%Y', E.`Examination Date`) BETWEEN '1995' AND '1999'
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