Here is my query :
// Table Name : Question
Cursor cursor = db.query("QUESTION", new String[] { "TEXT", "OPTION_A",
"OPTION_B", "OPTION_C", "OPTION_D", "OPTION_E",
"RIGHT_ANSWER" },
"SUBJECT=?", new String[] { "Ingles", "Historia" }, null,null,
null);
I can have multiple subjects, right now i am having only two subjects(Ingles,Historia)
How to sort data by subjects using query??
I am getting bind or out of range error. I know error is somewhere in where clause , but not able to solve it.
I got the answer.
1) To sort the data, need to enter column name in last argument
2) When multiple selection condition is available in one column use
IN Operator.