I need to write an ACCESS query that goes something like this:
For each customer (table customer-product)
For each product they have (table customer-product)
If they don't have the latest product (table product)
Include that customer+product combo in the result
The customer-product table is related to the product table via a productID foreign key.
Sample data:
customer-product table:
Company ProductID Version
=======================+========
ABC Company ProductA Version1
ABC Company ProductA Version2
ABC Company ProductB Version1
DEF Company ProductA Version1
DEF Company ProductB Version1
DEF Company ProductB Version2
product table:
Product Version CurrentVersion?
===================================
ProductA Version1 False
ProductA Version2 True
ProductB Version1 False
ProductB Version2 True
The result of this query should give me:
ABC Company ProductB
DEF Company ProductA
ANY HELP IS APPRECIATED !!!
Scott.
Scott Meridew
Director of Professional Services, TxMQ Inc.
Certified MQSeries Solution Expert
Certified MQSeries Developer
Certified MQSeries Specialist
Microsoft Certitifed Systems Engineer
For each customer (table customer-product)
For each product they have (table customer-product)
If they don't have the latest product (table product)
Include that customer+product combo in the result
The customer-product table is related to the product table via a productID foreign key.
Sample data:
customer-product table:
Company ProductID Version
=======================+========
ABC Company ProductA Version1
ABC Company ProductA Version2
ABC Company ProductB Version1
DEF Company ProductA Version1
DEF Company ProductB Version1
DEF Company ProductB Version2
product table:
Product Version CurrentVersion?
===================================
ProductA Version1 False
ProductA Version2 True
ProductB Version1 False
ProductB Version2 True
The result of this query should give me:
ABC Company ProductB
DEF Company ProductA
ANY HELP IS APPRECIATED !!!
Scott.
Scott Meridew
Director of Professional Services, TxMQ Inc.
Certified MQSeries Solution Expert
Certified MQSeries Developer
Certified MQSeries Specialist
Microsoft Certitifed Systems Engineer