I have:
String sqlite = "SELECT count(_id) AS _lCount FROM answers WHERE phase = 3 and correct_incorrect='1'
as a query, but I need the correct_incorrect column to also take into account a "1*"
Would this be a valid way to account for it?
String sqlite = "SELECT count(_id) AS _lCount FROM answers WHERE phase = 3 and correct_incorrect='1'or'1*'
I would test it, but the possibility of a "1*" is rare and would take a few hours of testing. So I want to make sure I'm not just wasting my time.
try it by using IN
String sqlite = "SELECT count(_id) AS _lCount FROM answers WHERE phase = 3 and correct_incorrect IN ('1','1*')"
As far as I know, It should be something like:
String sqlite = "SELECT count(_id) AS _lCount FROM answers WHERE phase = 3 and (correct_incorrect='1' or correct_incorrect = '1*')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With