[英]I wanted to create a SQL query to list of all customers who have placed an above average number of orders
[英]List Customers who have paid for all the orders or have not placed order
select *
from customer c
where not exists (
select 1 from "order" o
where o.cust_id = c.cust_id and payment_status = 'UNPAID'
)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.