and operator in where clause #288
-
Hi I have a table that looks like this: I want to execute this query:
So that I can get "2022-09-20" and "2022-09-19" when I execute this code:
I get "2022-09-21" , "2022-09-20" and "2022-09-19" If I changed the order inside the WHERE like this:
I get "2022-09-20" , "2022-09-19" and "" (empty string) How can I achieve the above query? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
your date value is stored as string, so you won't be able to compare it with another date. or do you want to string comparision only ? if yes - then use array query for querying multiple value with same property. take a look at some query example - https://jsstore.net/tutorial/adv-sql-example/ |
Beta Was this translation helpful? Give feedback.
your date value is stored as string, so you won't be able to compare it with another date.
or do you want to string comparision only ?
if yes - then use array query for querying multiple value with same property. take a look at some query example - https://jsstore.net/tutorial/adv-sql-example/