Created
September 8, 2016 22:58
-
-
Save gordonje/8eb9cebc383462c82d2b1b1abe0ef7d6 to your computer and use it in GitHub Desktop.
check for non-zero AMOUNT_B or AMOUNT_C values
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 * | |
FROM "CVR_CAMPAIGN_DISCLOSURE_CD" a | |
JOIN "SMRY_CD" b | |
ON a."FILING_ID" = b."FILING_ID" | |
AND a."AMEND_ID" = b."AMEND_ID" | |
WHERE a."FORM_TYPE" = 'F460' | |
AND UPPER(b."FORM_TYPE") ~ '^[A-Z]$' | |
AND ("AMOUNT_B" > 0 OR "AMOUNT_C" > 0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No rows returned, which is good.