We help IT Professionals succeed at work.
Get Started

sql server query to create an access query that will only result in 1 distinct combination

Fordraiders
Fordraiders asked
on
113 Views
Last Modified: 2015-03-02
Access: 2010
What I have:   sql server query that creates a unique


What I need:
I need to create a query that will find distinct and unique combination of 2 fields

Current sql server query:  I NEED THIS QUERY TO RESULT THE SAME IN ACCESS


SELECT MIN(SKU) AS SKU
       ,[CompSKUCondensed]
       ,[VdrBrandName]
       ,COUNT([sku]) AS [Count]
   FROM [QA].[dbo].[comp_aio_bkp_vsm]
   WHERE SKU > '' and [CompSKUCondensed] > '' and [VdrBrandName] > '' and
         XRef_Comment NOT IN ('PARENT CHILD CROSSES', 'BRAND XREFS FROM 1 TO 16','BRAND FROM 1 TO 16')
   GROUP BY  
        [VdrBrandName]
   ,[CompSKUCondensed]
   HAVING COUNT(SKU) = 1
   ORDER BY [CompSKUCondensed]


Thanks
fordraiders
Comment
Watch Question
EE Topic Advisor
CERTIFIED EXPERT
Most Valuable Expert 2014
Awarded 2013
Commented:
This problem has been solved!
Unlock 2 Answers and 3 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE