Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

tabl1 - customers--> cust_id,name

table2 - bills --> bill id,cust_id,bill_amount

least 5 billed

with cte as ( select c.cust_id,c.name, b.bill_id,b.bill_amount from customer c join


bills b order by b.bill_amount
on c.cust_id=b.cust_id)
d

You might also like