OT Optimizar query MySql

Re: OT Optimizar query MySql

Postby FranciscoA » Sun May 03, 2020 3:48 pm

Este es el mejor tiempo que he logrado:
Code: Select all  Expand view
DROP TABLE IF EXISTS pruebas ;

CREATE TABLE pruebas  
   SELECT fechemis,td,numdoc,codicont,nombre FROM facturas GROUP BY codicont ;

SELECT * FROM pruebas
WHERE codicont NOT IN (SELECT codicont FROM catalogo WHERE nv = 'S') ;
 

TOTAL TIEMPO: 2.085 Secs

Saludos.
Francisco J. Alegría P.
Chinandega, Nicaragua.

Fwxh-MySql-TMySql
User avatar
FranciscoA
 
Posts: 2158
Joined: Fri Jul 18, 2008 1:24 am
Location: Chinandega, Nicaragua, C.A.

Previous

Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 54 guests