Skip to content

Instantly share code, notes, and snippets.

@iamlucianojr
Created December 10, 2014 18:40
Show Gist options
  • Save iamlucianojr/048ddf3539b7349a83f9 to your computer and use it in GitHub Desktop.
Save iamlucianojr/048ddf3539b7349a83f9 to your computer and use it in GitHub Desktop.
Cross join
select * from bsw_transportadora t
cross join bsw_regiao r
left join bsw_produto_frete pf on (pf.cd_regiao = r.regiao and pf.cd_transportadora = t.cd_transportadora and pf.cd_produto = 6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment