Is there a single SQL statement to return the following?
List the orders that contain "nuts" AND "bolts" AND "washers".
Using someting similar to Testdata with Orditems normalized to include one item code per record for an example.
"Nuts" OR "bolts" OR "washers" is easy;
INLIST(orditems.item,"nuts","bolts","washers" but what about only the orders that include ALL items searched for? The order could contain other items also but at least in this example "nuts","bolts" and "washers".
This is for a string I am building which ends up macro expanded. Thanks [sig]<p>John Durbin<br><a href=mailto: john@johndurbin.com> john@johndurbin.com</a><br><a href= </a><br>MCP Visual FoxPro<br>
ICQ VFP ActiveList #73897253[/sig]
List the orders that contain "nuts" AND "bolts" AND "washers".
Using someting similar to Testdata with Orditems normalized to include one item code per record for an example.
"Nuts" OR "bolts" OR "washers" is easy;
INLIST(orditems.item,"nuts","bolts","washers" but what about only the orders that include ALL items searched for? The order could contain other items also but at least in this example "nuts","bolts" and "washers".
This is for a string I am building which ends up macro expanded. Thanks [sig]<p>John Durbin<br><a href=mailto: john@johndurbin.com> john@johndurbin.com</a><br><a href= </a><br>MCP Visual FoxPro<br>
ICQ VFP ActiveList #73897253[/sig]