Created
March 2, 2010 10:28
-
-
Save ollyjackson/319416 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select i.id, sum(li.value) as litotal from invoice as i ,line_items as li where li.invoice_id = i.id group by li.invoice_id having litotal > 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment