Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > SQL
Registrarse FAQ Miembros Calendario Guía de estilo Buscar Temas de Hoy Marcar Foros Como Leídos

 
 
Herramientas Buscar en Tema Desplegado
  #1  
Antiguo 24-01-2006
Avatar de Coco_jac
Coco_jac Coco_jac is offline
Miembro
 
Registrado: mar 2005
Ubicación: Lima Peru
Posts: 338
Poder: 20
Coco_jac Va por buen camino
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
PERO ME GENERO UN ERROR.

GRACIAS ANTICIPDAS.

Última edición por Coco_jac fecha: 24-01-2006 a las 00:36:32.
Responder Con Cita
 


Herramientas Buscar en Tema
Buscar en Tema:

Búsqueda Avanzada
Desplegado

Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

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


La franja horaria es GMT +2. Ahora son las 09:53:54.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi