Skip to content

Instantly share code, notes, and snippets.

@maxipavlovic
Created May 24, 2020 18:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxipavlovic/e3def28dbb7de09dfb4e49b385734f82 to your computer and use it in GitHub Desktop.
Save maxipavlovic/e3def28dbb7de09dfb4e49b385734f82 to your computer and use it in GitHub Desktop.
SELECT "example_product"."id", "example_product"."name", "example_product"."category_id", "example_product"."company_id", "example_category"."id", "example_category"."name", "example_company"."id", "example_company"."name"
FROM "example_product"
LEFT OUTER JOIN "example_category" ON ("example_product"."category_id" = "example_category"."id")
INNER JOIN "example_company" ON ("example_product"."company_id" = "example_company"."id")
WHERE "example_product"."name" LIKE 'Connect%' ESCAPE '\'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment