Hey All
Is it possible to count all reservations for users and only get results where users have had more than X reservations. Here is my code to just count all user's reservations
SELECT
u.firstname, u.lastname u.email, COUNT(r.reservation_id) as orders
FROM
users AS u LEFT OUTER JOIN
reservation AS r USING (user_id)
GROUP BY
u.id
Can I add to this query to say WHERE orders >= 5 ??
Hope you can advise
Lee