Creating an SQL query to list all clients, who spent over 1000$
Posted
by Lapa
on Stack Overflow
See other posts from Stack Overflow
or by Lapa
Published on 2010-05-26T11:17:19Z
Indexed on
2010/05/26
11:21 UTC
Read the original article
Hit count: 116
So, I have three tables with the following rows: Customers (Customer_id and Name), Orders (Customer_id, Product_id, Quantity) and Products (Price).
How do I write a query which shows all customers who spent more than 1000$? Do I have to join the tables?
© Stack Overflow or respective owner