Fórum SQL #208447
22/01/2004
0
Select Panfletos.CodBairro,Sum(Panfletos.Qtd) as Total
From Panfletos,EMPRESA
Where Panfletos.CODEMPR=EMPRESA.Codigo and
Upper(Empresa.RazaoSocial) Like Upper(:VarEmpresa) and
Panfletos.Data Between :VarDataI and :VarDataF
Group By Panfletos.CodBairro
Roni_moc
Curtir tópico
+ 0Posts
22/01/2004
Brunolspp
Select Panfletos.CodBairro
,Panfletos.Responsaveis
,Sum(Panfletos.Qtd) as Total
From Panfletos
,EMPRESA
Where Panfletos.CODEMPR=EMPRESA.Codigo
and Upper(Empresa.RazaoSocial) Like Upper(:VarEmpresa)
and Panfletos.Data Between :VarDataI and :VarDataF
Group By Panfletos.CodBairro
,Panfletos.Responsaveis
Gostei + 0
22/01/2004
Leanribas
Leandro
Gostei + 0
22/01/2004
Cicerojr
Select tabA.Codigo, 0 AS Campo ...
Só que este campo naum vem de uma tabela e neste exemplo o seu valor será Zero.
Se entendi bem ... acho q eh isso.
Valeu!!
Gostei + 0
22/01/2004
Roni_moc
Gostei + 0
22/01/2004
Roni_moc
pode me ajudar?
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)