daily pastebin goal
94%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. select * from Doacoes
  2. inner join Projetos on Projetos.IdProjeto = Doacoes.IdProjeto
  3. left join Pedidos on Doacoes.IdDoacao = Pedidos.IdDoacao
  4. left join Recompensas on Pedidos.IdRecompensa = Recompensas.IdRecompensa
  5. where Doacoes.IdUsuario = 2017
  6.    
  7. from d in banco.Doacoes
  8. join p in banco.Projetos on d.IdProjeto equals p.IdProjeto
  9. join pedi in banco.Pedidos on d.IdDoacao equals pedi.IdDoacao into pedi
  10. join recompensa in banco.Recompensas  on recompensa.IdRecompensa equals
  11. pedi.IdRecompensa into pedi
RAW Paste Data
Top