I am not sure how to go about it
I understood that I can use
"select * from" OR .where() function but I do not know how to implement it.
I have a third column in my database table that I intend to use to filter what is presented
any answers revolving this is greatly appreciated
any help is appreciate it cheers
2
Answers
Please add some code, its hard to understand what you want to achieve. I’m just gonna give an example:
Yes you said i right, You can do with two ways adding condition directly in your sql query and fetching the according data:
here you need to pass the column name in
where
whose data you want to filter and the filter term inwhereTerm
and it will get your filtered data, You can play with it add more conditions if you want more advance filtration.Or you and fetch all the data and filter your list.
here you can add more condition will putting
||
(or)&&
(and) conditions.