SELECT detail.avr_ari, "J" AS WTG; >>>FROM general!detail; >>>WHERE Detail.avr_wtgwill do the trick. Using Detail.avr_wtg = .T. slows things down.
Test with logical field=.t. 3.973000 4.389000 3.751000 3.714000 3.698000 3.704000 3.711000 3.713000 3.703000 3.714000 Total time: 38.070000 Average Time: 3.807000 Test with just logical field 3.819000 3.750000 3.715000 3.724000 3.716000 3.714000 3.718000 3.721000 3.726000 3.713000 Total time: 37.316000 Average Time: 3.731600This is the test program:
lnstr="Test with logical field=.t." lnSecElapsed=0 lnTot=0 for i=1 to 10 use g:\redp\work\pp\pp10swan00_b.dbf alias BldMstr lnSec=seconds() select * from BldMstr where incinrpt=.t. into cursor curInc lnSecElapsed=seconds()-lnSec lnstr=lnstr+chr(13)+str(lnSecElapsed,10,6) lnTot=lnTot+lnSecElapsed close data all next lnstr=lnstr+chr(13)+"Total time: "+str(lnTot,12,6)+ ; chr(13)+"Average Time: "+str(lnTot/10,12,6) lnTot=0 lnstr=lnstr+chr(10)+chr(13)+"Test with just logical field" for i=1 to 10 use g:\redp\work\pp\pp10swan00_b.dbf alias BldMstr lnSec=seconds() select * from BldMstr where incinrpt into cursor curInc lnSecElapsed=seconds()-lnSec lnstr=lnstr+chr(13)+str(lnSecElapsed,10,6) lnTot=lnTot+lnSecElapsed close data all next lnstr=lnstr+chr(13)+"Total time: "+str(lnTot,12,6)+ ; chr(13)+"Average Time: "+str(lnTot/10,12,6) strtofile(lnstr,"testfile.txt") modi file testfile.txt