Last active
November 10, 2015 15:55
-
-
Save wlmcewen/ba34b1c17e12ade721e5 to your computer and use it in GitHub Desktop.
prospector sql
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
UPDATE "subscriber_source" ss | |
SET subscriber_source_approved = 't' | |
WHERE subscriber_source_approved = 'f' | |
AND subscriber_id in ('SOME IDS...') | |
AND source_id = '20150707140016042989000000' | |
AND 0 < (SELECT Count(*) | |
FROM newsfeed, newsfeed_item | |
WHERE newsfeed.newsfeed_id = newsfeed_item.newsfeed_id | |
AND ss.subscriber_id = newsfeed.subscriber_id | |
AND newsfeed_item.source_id = | |
'20150707140016042989000000' | |
AND newsfeed_active = 't' | |
AND newsfeed_curated = 'f') |
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
UPDATE "subscriber_source" ss | |
SET subscriber_source_approved = 't' | |
WHERE subscriber_source_approved = 'f' | |
AND 0 < (SELECT Count(*) | |
FROM newsfeed, | |
newsfeed_item | |
WHERE newsfeed.newsfeed_id = newsfeed_item.newsfeed_id | |
AND ss.subscriber_id = newsfeed.subscriber_id | |
AND newsfeed_item.source_id = | |
'20150707140016042989000000' | |
AND newsfeed_active = 't' | |
AND newsfeed_curated = 'f') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment