You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to construct to use the query builder to construct something like the following:
SELECT * FROM resource INNER JOIN resource_owner ON (resource.owner_id = resource_owner.id)
WHERE resource.created_at BETWEEN $1 AND ($1 + INTERVAL '90 days') AND resource_owner.user_id = $2)
I've been playing around with the query builder for a few days now and I think the config should look something like this:
But the 2 fields that show up for the between selector are static date fields when instead they should be 1) a drop down to select which property of the user we should be adding the days to and 2) a number field to select the number of days to add to the given variable.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi there,
I'm trying to construct to use the query builder to construct something like the following:
I've been playing around with the query builder for a few days now and I think the config should look something like this:
But the 2 fields that show up for the between selector are static date fields when instead they should be 1) a drop down to select which property of the user we should be adding the days to and 2) a number field to select the number of days to add to the given variable.
Any help would be greatly appreciated! Thank you!
Beta Was this translation helpful? Give feedback.
All reactions