troubleshooting Question

Find matching rows in two tables

Avatar of MikeMCSD
MikeMCSDFlag for United States of America asked on
Microsoft SQL ServerMicrosoft SQL Server 2008Microsoft SQL Server 2005
3 Comments1 Solution448 ViewsLast Modified:
I want to find out if there are any rows in the Nop_ProductVariant table
that have the same SKU ID as in the TempTable table,
and display the ProductVariantId of the ones that match.

SELECT ProductVariantId, SKU
FROM Nop_ProductVariant

SELECT  product_code
FROM TempTable

What's the best way to do this? thanks
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
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 3 Comments.
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