select * from projects;

SELECT distinct customers.name, orders.order_date, orders.total_amount
FROM customers
  INNER JOIN orders ON customers.id = orders.customer_id
WHERE orders.total_amount > 100
  AND orders.status = 'Completed'
ORDER BY orders.order_date ASC
LIMIT 20;

select name, age, count(*) as total
from users
where age >= 18
group by name, age
having count(*) > 1
order by age desc
limit 10;

Select p.product_name, c.category_name, p.price
From products p
  Join categories c On p.category_id = c.id
Where p.price > (Select avg(price) From products Where category_id = p.category_id)
  And c.category_name In ('Books', 'Games')
Order By p.price Desc
Limit 15;
