Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Optimize this query, can it be done?
Message
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01413457
Message ID:
01413471
Views:
66
>Try
>
>SELECT tow.* FROM tow
>	INNER JOIN inhistory ih ON tow.child_id = ih.child_id 
>	WHERE tow.towid > 0 AND tow.vehi_id > 0 AND canccode = '    '
>			AND 
>                (ih.child_id IN ('<<lcchild_id>>', '<<lcParent_Id>>')
>		 OR ih.parent_id IN ('<<lcchild_id>>', '<<lcParent_Id>>'))
>
>

Yes, this is much better than my suggestion.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform