Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conditional query after join on is supported. >=,<=,in #780

Open
lurenjia11083 opened this issue Apr 23, 2024 · 1 comment
Open

Conditional query after join on is supported. >=,<=,in #780

lurenjia11083 opened this issue Apr 23, 2024 · 1 comment

Comments

@lurenjia11083
Copy link

SELECT
	seats.id,
	seats.seatname,
	COUNT( user_seats_order.id ) count 
FROM
	seats
	LEFT JOIN user_seats_order ON user_seats_order.seatid = seats.id 
	AND user_seats_order.dueendtime >= '2024-04-23T04:05:11' 
	AND user_seats_order.duestartime <= '2024-04-23T23:05:11' 
	AND user_seats_order.duestatu IN ( 0, 1, 2, 3 ) 
@jeffgbutler
Copy link
Member

This is not supported currently. You will need to put the conditions in a WHERE clause.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants