Question on querying by comparing column values #3709
-
Environment
Description of issueTake for example the following query:
What I'm trying to do is to query out all the transactions where the created_at timestamp is the same as the updated_at timestamp. Ofcourse here's the error:
Because it's treating the updated_at as a string. My question is to check if there's a way to achieve what i want purely using the querying syntax and not via views. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This is not possible right now and it's also not planned for implementation. The solutions are using views as you mentioned, or creating a computed column that returns the boolean value of Here's the related info: #1105 |
Beta Was this translation helpful? Give feedback.
-
In a case like that, it's highly likely that you can give those "kind of transactions" a name. Maybe "new transactions"? Or "unmodified transactions"? Use this name as another endpoint and create a view for it. Also makes your API nicer to use, imho. |
Beta Was this translation helpful? Give feedback.
This is not possible right now and it's also not planned for implementation. The solutions are using views as you mentioned, or creating a computed column that returns the boolean value of
created_at=eq.updated_at
and then using that column as filter.Here's the related info: #1105