Skip to content

Instantly share code, notes, and snippets.

@tiltec
Created October 4, 2017 14:16
Show Gist options
  • Save tiltec/a5b6643d384983e8d3e65241f7d1d481 to your computer and use it in GitHub Desktop.
Save tiltec/a5b6643d384983e8d3e65241f7d1d481 to your computer and use it in GitHub Desktop.
SELECT "stores_pickupdate"."id", "stores_pickupdate"."created_at", "stores_pickupdate"."series_id", "stores_pickupdate"."store_id", "stores_pickupdate"."date", "stores_pickupdate"."description", "stores_pickupdate"."max_collectors", "stores_pickupdate"."deleted", "stores_pickupdate"."is_date_changed", "stores_pickupdate"."is_max_collectors_changed", "stores_pickupdate"."is_description_changed", "stores_pickupdate"."done_and_processed", "stores_pickupdate"."notifications_sent" FROM "stores_pickupdate" INNER JOIN "stores_store" ON ("stores_pickupdate"."store_id" = "stores_store"."id") INNER JOIN "groups_group" ON ("stores_store"."group_id" = "groups_group"."id") INNER JOIN "groups_group_members" ON ("groups_group"."id" = "groups_group_members"."group_id") WHERE ("stores_pickupdate"."deleted" = false AND "groups_group_members"."user_id" = 56 AND "stores_pickupdate"."id" = 127) FOR UPDATE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment