Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
LEFT JOIN and complex criteria
Message
 
 
To
22/09/2006 17:57:08
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01156530
Message ID:
01156977
Views:
18
Fabio,

This select is quite slow. Do you know if it is possible to make it quicker?
select curTemp.cTrans_pk, TI.cInsurances_fk ;	
		from curTemp inner join Trans_Insurances TI ;
		on curTemp.cTrans_pk = TI.cTrans_fk ;	
		where TI.iSequence_Number = (select max(iSequence_Number) ;
		from Trans_Insurances X ;
		where X.cTrans_fk = TI.cTrans_fk) ;
		into cursor curTemp1
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform