![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|||||||
| Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
|
Herramientas | Buscar en Tema | Desplegado |
|
#1
|
||||
|
||||
|
Obtener Diferencias De Netos ???
HOLA AMIGOS DEL FORO NECESITO SU AYUDA, RESULTA QUE NECESITO OBTENER LA DIFERENCIA DE LA SUMA DE TODOS LO NETOS PAGADOS A LOS OBREROS EN EL MES DE ENERO Y FEBRERO DIGAMOS.
ES DECIR OBTENGO LA SUMA DE LOS NETOS DEL MES DE ENERO Y ESTOS RESTARLOS A LA SUMA DE LOS NETOS DE FEBRERO, NECESITO HACER UNA QUERY PERO NO ME RESULTA. los campos involucrados son sobre una misma tabla. HIZE ALGO ASI : Código:
select (select sum(neto) from cta_remun where fecha='02-2005')-
(select sum(neto) from cta_remun where fecha='01-2005') from cta_remun
GRACIAS ANTICIPDAS. Última edición por Coco_jac fecha: 24-01-2006 a las 00:36:32. |
|
|
Temas Similares
|
||||
| Tema | Autor | Foro | Respuestas | Último mensaje |
| función para obtener diferencias entre fechas - Firebird | clanmilano | SQL | 1 | 11-11-2005 13:29:52 |
| Obtener datos de un datarow marcado como deleted | edgusano | .NET | 3 | 16-08-2005 21:44:06 |
| Como obtener valor de Campo Autoincremento... | vic_ia | Firebird e Interbase | 5 | 10-05-2005 17:19:42 |
| Procedimiento almacenado para obtener Rubros y subrubros | oliverinf | Firebird e Interbase | 7 | 27-08-2004 01:25:42 |
| Obtener Hardware Instalado | diegofhernando | Varios | 4 | 09-03-2004 20:28:36 |
|