We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, sorry but I'm somehow confused on how to exactly do query condition for IF and IS NULL
I have this particular SQL query but not sure how to convert it to ORM.
WHERE has_sent = 0 AND messenger_messages.create_date >= IF(users.last_login IS NULL, ( Curdate() - interval 1 month ), users.last_login + interval 5 minute)
Hope you can help. Thanks!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi, sorry but I'm somehow confused on how to exactly do query condition for IF and IS NULL
I have this particular SQL query but not sure how to convert it to ORM.
WHERE
has_sent = 0
AND
messenger_messages.create_date >= IF(users.last_login IS NULL, ( Curdate() - interval 1 month ), users.last_login + interval 5 minute)
Hope you can help. Thanks!
The text was updated successfully, but these errors were encountered: