troubleshooting Question

SQL Query

Avatar of fjkaykr11
fjkaykr11 asked on
Microsoft SQL ServerSQL
5 Comments2 Solutions328 ViewsLast Modified:
I am working with a Select Query (SQL Server 2000) where I want to filter for the number of orders being placed for a specific item. For the Query below
I want to bring back only customers who placed an order for ItemCode='100' more than two times. Any ideas on how I can do this?  Thanks.


Select Customer.CustomerID
from Customer
JOIN Orders on Customer.CustomerID = Orders.CustomerID
WHERE
Orders.ItemCode ='100'
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 2 Answers and 5 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 2 Answers and 5 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