troubleshooting Question

SQL Select - identify record discrepancies

Avatar of tmajor99
tmajor99 asked on
Microsoft SQL Server
1 Comment1 Solution100 ViewsLast Modified:
I need some help with SQL Select to identify record discrepancies.  I have a table containing a list of products with each product containing 3 feature descriptions.  I also have a group ID column that groups related sets of products together.  WIthin each product group, I need to identify the group of products that do not contain the same set of new features.    For example;

GroupID  Product ID NewFeature01 NewFeature02 NewFeature03
  1                  21                   Apple            Peach
  1                  22                   Peach            Apple
  1                  23                                          Peach               Apple
  2                  24                    Cherry
  2                  25                    Orange  
  3                  26                                          Nuts
  3                  27                     Nuts

Using the above example, only product group does not have the same set of new features.   Therefore, the expect result from this SQL Select query would:
GroupID  Product ID NewFeature01 NewFeature02 NewFeature03
  2                  24                    Cherry
  2                  25                    Orange
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros