Search found 26 matches: numdoc

Return to advanced search

Re: Ayuda con SQL

... abonado en cero" ) retu .f. endif wtxt = "errorecib.txt" ferase( wtxt ) cHande = FCREATE ( wtxt ) cSQLNum := "SELECT * FROM numdoc where numero = " + str( xemprevige ) oRS1num := CargaRecordSet( cSQLnum, CadenaCon ) IF oRS1num = nil Msginfo( "problemas, no puedo ...
by jpcavagnaro
Wed Apr 01, 2020 1:14 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda con SQL
Replies: 5
Views: 1368

Ayuda con SQL

... VALUES ('18/03/2020',2, 3390,'Iturrioz Fermin ', 349400.00,0,1,'') UPDATE Numdoc SET recibo = 3390, nroorden = 7 where numero = 2 La tabla que no actualizó es Pagos. Lo hago con try catch, mando el string con todas las sentencias ...
by jpcavagnaro
Wed Mar 18, 2020 1:23 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda con SQL
Replies: 5
Views: 1368

Re: XBrowser de 2 tablas al mismo tiempo, se puede ??

... XBROWSER aSal TITLE "Seleccione Liquidacion" SETUP ( oBrw:cHeaders := { "Cuenta", "Auxiliar", "Td", "NumDoc", "Liquidac.", "Saldo MN", "Saldo ME" }, oBrw:oWnd:bInit := { |oDlg| oDlg:aControls[ 1 ]:Hide() } )SELECT ...
by Enrrique Vertiz
Fri Mar 06, 2020 11:37 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: XBrowser de 2 tablas al mismo tiempo, se puede ??
Replies: 6
Views: 1765

Re: Consulta Mysql

... el foro. Gracias Juan, bajó a 3.076 segundos. Lo que no entiendo es por qué se tiene que agregar al GROUP BY, el campo fechemis. (además del campo numdoc) Saludos. Considero que numdoc no es necesario utilizarlo en el group by Si necesitas presentar un resultado acumulado por cuenta (Tipo Mayor ...
by jnavas
Tue Nov 06, 2018 10:22 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Consulta Mysql
Replies: 21
Views: 4605

Re: Consulta Mysql

Debes tener indice por ambos campos, Asi es, Juan. Tengo indices por cada uno de esos campos. SELECT numdoc,fechemis, sum(debe) debitos, sum(haber) creditos, sum(debe-haber) diferencia FROM facturas GROUP BY numdoc,fechemis HAVING SUM(debe-haber) <> 0; Gracias Juan, ...
by FranciscoA
Mon Nov 05, 2018 11:45 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Consulta Mysql
Replies: 21
Views: 4605

Re: Consulta Mysql

SELECT numdoc,fechemis, sum(debe) debitos, sum(haber) creditos, sum(debe-haber) diferencia FROM facturas GROUP BY numdoc,fechemis HAVING SUM(debe-haber) > 0; Debes tener indice por ambos campos, (Si fuese SQLSERVER rechazará ...
by jnavas
Mon Nov 05, 2018 11:28 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Consulta Mysql
Replies: 21
Views: 4605

Re: Consulta Mysql

SELECT numdoc,fechemis, sum(debe) debitos, sum(haber) creditos, sum(debe-haber) diferencia FROM facturas GROUP BY numdoc,fechemis HAVING SUM(debe-haber) > 0; Debes tener indice por ambos campos, (Si fuese SQLSERVER rechazará ...
by jnavas
Mon Nov 05, 2018 9:23 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Consulta Mysql
Replies: 21
Views: 4605

Re: Consulta Mysql

Hola Francisco, ¿Podrías probar SELECT fechemis,numdoc, sum(debe) debitos, sum(haber) creditos, sum(debe-haber) diferenciaFROM facturas  GROUP BY numdocWHERE debitos > creditos o HAVING debitos > creditos El resultado ...
by FranciscoA
Sat Oct 27, 2018 3:00 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Consulta Mysql
Replies: 21
Views: 4605

Re: Consulta Mysql

Carlos, gracias por contestar. SELECT fechemis,numdoc, sum(debe) debitos, sum(haber) creditos, sum(debe-haber) diferenciaFROM facturas  GROUP BY numdoc HAVING SUM(debe-haber) > 0 ORDER BY numdoc;  No ...
by FranciscoA
Thu Oct 25, 2018 10:38 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Consulta Mysql
Replies: 21
Views: 4605

Re: Consulta Mysql

me pareciera que necesitas agregar un order by
ya que la el having sum(debe-haber) no esta noptimizado, asumiendo que la tabla este ordenada por fechamis y numdoc
by carlos vargas
Thu Oct 25, 2018 9:51 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Consulta Mysql
Replies: 21
Views: 4605

Re: xbrowses color

It can go good
but I have another structure

Image


USE CONSUM ALIAS CO
INDEX ON upper(NUMDOC)+Upper(numriga) TAG MESACON TO CONSUM for !deleted()
by Silvio.Falconi
Fri Nov 10, 2017 7:34 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: xbrowses color
Replies: 9
Views: 2284

Xbrowse drag unique reference code

... but my problem is an another I need to move from one xbrowse to the other 2 or more records tied by a unique reference code sample: Producto|Numdoc|numrow 00010 |000006 |001 00002 |000006 |001 00005 |000006 |002 when I drag with the mouse I wish move together the record 00010 and the record ...
by Silvio.Falconi
Fri Oct 20, 2017 6:58 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Xbrowse drag unique reference code
Replies: 0
Views: 427

XBROWSER Question

... XBROWSER aSal TITLE "Seleccione Liquidacion" SETUP ( oBrw:cHeaders := { "Cuenta", "Auxiliar", "Td", "NumDoc", "Liquidac.", "Saldo MN", "Saldo ME" } ) But I would like to increase that double click on a record close ...
by Enrrique Vertiz
Mon Apr 17, 2017 3:38 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBROWSER Question
Replies: 3
Views: 532

Consulta xBrowser

... XBROWSER aSal TITLE "Seleccione Liquidacion" SETUP ( oBrw:cHeaders := { "Cuenta", "Auxiliar", "Td", "NumDoc", "Liquidac.", "Saldo MN", "Saldo ME" } ) Pero quisiera aumentar que al darle doble click a un registro cierre ...
by Enrrique Vertiz
Mon Apr 17, 2017 7:18 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Consulta xBrowser
Replies: 5
Views: 903

Re: xBrowse cantidad de registros maximo

... SQLLIB y con TwBrowse y TsBrowse, si presenta los miles de registros, mi pregunta es sobre TxBrowse cCommand:="SELECT codven,fecven,coddoc,numdoc,refere,codcli,nomcli,tipmon,totven,totigv,totnet,status,motnota,posted,fecdes,usrsta,codzon,numenv,numbaj,nroanx,sql_rowid FROM "+regvta+" ...
by Enrrique Vertiz
Wed Apr 13, 2016 2:10 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: xBrowse cantidad de registros maximo
Replies: 3
Views: 1372
Next

Return to advanced search