>Walter,
>
>Are you sure the performance problems you are seeing with SQL is not just an issue of the SQL optimizer making incorrect judgements about what to join first? Your xbase code uses a priori knowledge of your data when you set it up. If you have a select with a three table join in VFP you can quite often split it into two selects that perform much better using the same a priori knowledge to reduce the amount of rows to be joined.
Or list the joins in the most optimal order and use the FORCE option in the SELECT command.