Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View gist:1890380
1 2 3 4 5
SELECT "health_quotes".* FROM "health_quotes" INNER JOIN "view_health_products" ON "view_health_products"."id" = "health_quotes"."health_product_id" AND "view_health_products"."type" IN ('HealthProduct') INNER JOIN "view_health_products" "extra_health_products_health_quotes" ON "extra_health_products_health_quotes"."id" = "health_quotes"."extra_health_product_id" AND "extra_health_products_health_quotes"."type" IN ('HealthProduct') WHERE (view_health_products.product_type_code = '1'
 
SELECT "health_quotes".* FROM "health_quotes" INNER JOIN "view_health_products" ON "view_health_products"."id" = "health_quotes"."health_product_id" AND "view_health_products"."type" IN ('HealthProduct') INNER JOIN "view_health_products" "extra_health_products_health_quotes" ON "extra_health_products_health_quotes"."id" = "health_quotes"."extra_health_product_id" AND "extra_health_products_health_quotes"."type" IN ('HealthProduct') WHERE "view_health_products"."product_type_code" = 1
 
SELECT "health_quotes".* FROM "health_quotes" INNER JOIN "view_health_products" ON "view_health_products"."id" = "health_quotes"."health_product_id" AND "view_health_products"."type" IN ('HealthProduct') INNER JOIN "view_health_products" "extra_health_products_health_quotes" ON "extra_health_products_health_quotes"."id" = "health_quotes"."extra_health_product_id" AND "extra_health_products_health_quotes"."type" IN ('HealthProduct') WHERE ("view_health_products"."product_type_code" = 1)

SELECT "health_quotes".* FROM "health_quotes" INNER JOIN "view_health_products" ON "view_health_products"."id" = "health_quotes"."health_product_id" AND "view_health_products"."type" IN ('HealthProduct') INNER JOIN "view_health_products" "extra_health_products_health_quotes" ON "extra_health_products_health_quotes"."id" = "health_quotes"."extra_health_product_id" AND "extra_health_products_health_quotes"."type" IN ('HealthProduct') WHERE ("view_health_products"."product_type_code" = 1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.