General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Select Sql - Rushmore
Hola
Hasta ahora tengo el mismo problema y no puedo solucionarlo, cuando genero la siguiente consulta "select ctacte.* from ctacte where ctacte.codigo="xxxxx" order by codigo,anomes desc into cursor qCta" tarde como 16 segs. en mostrarme 90 registros, la tabla ctacte tiene 500,000 reg, el comando sys (3054,11) me indica que que no optimiza, existem indices por el campo codigo, por codigo+anomes, por anomes+codigo, por registros borrados. La estructuro de la tabla es aprox. la siguiente:
codigo c 5
anomes c 6
sector c 2
fecha d
documento c 10
tarifa c 7
consumo n 9,2
...
bueno es resto son datos
porque no puedo optimizar la consulta.????????
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only