Skip to content

Instantly share code, notes, and snippets.

@brandonburke
Created November 13, 2014 18:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brandonburke/f116aa9ed0263c0bd6ee to your computer and use it in GitHub Desktop.
Save brandonburke/f116aa9ed0263c0bd6ee to your computer and use it in GitHub Desktop.
Needles query with concatenated insurance types.
SELECT cases.casenum, (SELECT LIST(policy_type,' , ') FROM insurance where cases.casenum = insurance.case_num) as insurance_types
FROM cases
WHERE cases.casenum = 12345
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment