FoxPro/Visual FoxPro - Problema Consulta sql

 
Vista:

Problema Consulta sql

Publicado por diegue (5 intervenciones) el 21/08/2004 03:03:31
tengo este problema tengo que mostrar por fecha la cantidad de cada nombre y luego el total para esa fecha y no lo logro que me falta hacer? :
tabla1(fch , nombre,cant)
tabla2(fch)
y hago
select tabla1.fch , sum(cant )as total
from tabla1, tabla2
where tabla1.fch = tabla2.fch
group by tabla1.fch
into cursor
y el reporte me muestra
fch1
tot1
tot2
fch2
tot1
tot2
pero preciso que quede asi
fch1
tot1
tot2
totalgeneral1
fch2
tot1
tot2
totalgeneral2

como lo hago con sql???
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder