una ayudita si tienen tiempo

07/08/2003 - 18:24 por Marcelo Cuevas | Informe spam
tengo esta inf. fecha
periodo nombre
monto
2003-08-07 10:55:00 20011 - 20011 Impuesto
Predial Rustico 74.60
2003-08-07 10:55:00 20012 - 20012 Impuesto
Predial Rustico 74.60
2003-08-07 10:55:00 20013 - 20013 Impuesto
Predial Rustico 74.60
2003-08-07 10:55:00 20014 - 20014 Impuesto
Predial Rustico 74.60
2003-08-07 10:55:00 20015 - 20015 Impuesto
Predial Rustico 74.60
2003-08-07 10:55:00 20016 - 20016 Impuesto
Predial Rustico 74.60
2003-08-07 10:55:00 20021 - 20021 Impuesto
Predial Rustico 73.60
2003-08-07 10:55:00 20022 - 20022 Impuesto
Predial Rustico 73.60
2003-08-07 10:55:00 20023 - 20023 Impuesto
Predial Rustico 73.60
2003-08-07 10:55:00 20024 - 20024 Impuesto
Predial Rustico 73.60
2003-08-07 10:55:00 20025 - 20025 Impuesto
Predial Rustico 73.60
2003-08-07 10:55:00 20026 - 20026 Impuesto
Predial Rustico 73.60
2003-08-07 10:55:00 20031 - 20031 Impuesto
Predial Rustico 72.60
2003-08-07 10:55:00 20032 - 20032 Impuesto
Predial Rustico 72.60
2003-08-07 10:55:00 20033 - 20033 Impuesto
Predial Rustico 72.60
2003-08-07 10:55:00 20034 - 20034 Impuesto
Predial Rustico 72.60
2003-08-07 10:55:00 20035 - 20035 Impuesto
Predial Rustico 72.60
2003-08-07 10:55:00 20036 - 20036 Impuesto
Predial Rustico 72.60

y quiero agruparla por año es decir
fecha periodo
nombre monto
2003-08-07 10:55:00 20011 - 20016 Impuesto
Predial Rustico 447.60
2003-08-07 10:55:00 20021 - 20026 Impuesto
Predial Rustico 441.60
2003-08-07 10:55:00 20031 - 20036 Impuesto
Predial Rustico 435.60

De antemano muchas gracias compañeros...
 

Leer las respuestas

#1 Sergio Somohano
07/08/2003 - 18:46 | Informe spam
Hola !!!
trata agrupando con Group by Year(Fecha)

tengo esta inf. fecha
periodo nombre
monto
2003-08-07 10:55:00 20011 -


20011 Impuesto
Predial Rustico 74.60
2003-08-07 10:55:00 20012 -


20012 Impuesto
Predial Rustico 74.60
2003-08-07 10:55:00 20013 -


20013 Impuesto
Predial Rustico 74.60
2003-08-07 10:55:00 20014 -


20014 Impuesto
Predial Rustico 74.60
2003-08-07 10:55:00 20015 -


20015 Impuesto
Predial Rustico 74.60
2003-08-07 10:55:00 20016 -


20016 Impuesto
Predial Rustico 74.60
2003-08-07 10:55:00 20021 -


20021 Impuesto
Predial Rustico 73.60
2003-08-07 10:55:00 20022 -


20022 Impuesto
Predial Rustico 73.60
2003-08-07 10:55:00 20023 -


20023 Impuesto
Predial Rustico 73.60
2003-08-07 10:55:00 20024 -


20024 Impuesto
Predial Rustico 73.60
2003-08-07 10:55:00 20025 -


20025 Impuesto
Predial Rustico 73.60
2003-08-07 10:55:00 20026 -


20026 Impuesto
Predial Rustico 73.60
2003-08-07 10:55:00 20031 -


20031 Impuesto
Predial Rustico 72.60
2003-08-07 10:55:00 20032 -


20032 Impuesto
Predial Rustico 72.60
2003-08-07 10:55:00 20033 -


20033 Impuesto
Predial Rustico 72.60
2003-08-07 10:55:00 20034 -


20034 Impuesto
Predial Rustico 72.60
2003-08-07 10:55:00 20035 -


20035 Impuesto
Predial Rustico 72.60
2003-08-07 10:55:00 20036 -


20036 Impuesto
Predial Rustico 72.60

y quiero agruparla por año es decir
fecha


periodo
nombre monto
2003-08-07 10:55:00 20011 -


20016 Impuesto
Predial Rustico 447.60
2003-08-07 10:55:00 20021 -


20026 Impuesto
Predial Rustico 441.60
2003-08-07 10:55:00 20031 -


20036 Impuesto
Predial Rustico 435.60

De antemano muchas gracias compañeros...


.

Preguntas similares