I am looking for a query than can list the customers:
- customers who sign up but not orders.
- customers who order more than 1 time.
I have 2 Table Users and Orders:
Users table:
user_id, created_atOrders table:
orders_id, order_no, customer_id, created_at.
customer_id in the orders table is user_id
I wrote this SQL query statement but I couldn't find a result
SELECT Users.user_id,
FROM Users
JOIN Orders
ON customer.id=Orders.customer_id
Could someone please help me out with this? Thanks!
It is for "customers who sign up but not orders."
It is for "customers who order more than 1 time"