Help!
I dont know if its just been a long day and my brain is fried, or if im trying to do something difficult....
I have a table with customer purchases containing the following columns:
- cust_no
- item_code
A sample regular item code would be like 'ABC', and the other version of this product would have a code like 'XABC' (The prefix is always an X). I need to do a select on the table that will bring back customers and their details that have both versions only (ie. if a customer only has ABC or only has XABC, I dont want ANY of their details for that particular product - ie. I need to check for each customer and each product if the customer has product ... AND product X... ). Is this at all possible?
I dont know if its just been a long day and my brain is fried, or if im trying to do something difficult....
I have a table with customer purchases containing the following columns:
- cust_no
- item_code
A sample regular item code would be like 'ABC', and the other version of this product would have a code like 'XABC' (The prefix is always an X). I need to do a select on the table that will bring back customers and their details that have both versions only (ie. if a customer only has ABC or only has XABC, I dont want ANY of their details for that particular product - ie. I need to check for each customer and each product if the customer has product ... AND product X... ). Is this at all possible?