Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
If some detail does not match, through the header out
Message
From
16/01/2004 17:47:34
 
 
To
16/01/2004 13:54:53
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00867597
Message ID:
00867700
Views:
15
>Oops, the subject should read:
>If some detail does not match, throw the header out
>
>
>Hello everybody.
>
>i've got 2 tables: sales order header (comast) and sales order detail (codet). i would like to display only sales orders where ALL of the details match certain criteria.
>
>i already have 2 scenarios completed:
>1. show sales orders which contain some/all details matching the criteria (show all detail lines)
>2. show sales orders which contain some/all details matching the criteria (show only matching detail lines)
>
>but the 3rd one i can not figure out the sql command. for the 1st scenario i prequerry the detail table by simply returning a new header with the orders containing anywhere the criteria.
>
>how do i do this?
>
>thank you for all your help.

could you post relevant table structures, some sample data, and the desired results from that sample data?
Insanity: Doing the same thing over and over and expecting different results.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform