Skip to content

Instantly share code, notes, and snippets.

@msulima
Created April 9, 2013 08:47
Show Gist options
  • Save msulima/5344120 to your computer and use it in GitHub Desktop.
Save msulima/5344120 to your computer and use it in GitHub Desktop.
FROM CardTransactionEntity AS ct WHERE (EXISTS(FROM TravelProductOnCardEntity AS prod WHERE ct.travelProductOnCard = prod AND prod.smartCard.smartCardId = :smartCardId) OR EXISTS(FROM ProfileOnCardEntity AS prof WHERE ct.profileOnCard = prof AND prof.smartCard.smartCardId = :smartCardId)) ORDER BY ct.transactionDate DESC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment