Sure, here it is....

select a.* from oeodtp a
join oeodtp b
on a.odordr = b.odordr
where a.oditem in ('03A0','03A2') and b.oditem = '975632'

In this scenario the "03A0" and "03A2" records are the "main" records, and
the "975632" is the "attribute" record. The results of this statement are
that it returns records on orders that have both an "03A0"/"03A2" record
and a "975632" record, but not the correct ones on those orders.

Hope this makes sense.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.