Tell me more ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

I want all the names of the user who has booked them 10 days before the current date. (There are multiple entries for a single user that's why I’m using the GROUP BY command.) Please let me know if there is any other way.

SELECT booking_date, user_id
FROM booking
HAVING max( booking_date ) < curdate( ) -10 group by user_id
share|improve this question

closed as off topic by Alex, Eight Days of Malaise, ChrisF Jul 10 '12 at 13:14

Questions on Web Applications Stack Exchange are expected to relate to web applications within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.

Browse other questions tagged or ask your own question.