I need to create a complex SQLite statement.
I need a SQLite statement like this
if ((part ==1 || part == 2) && isFree==YES)
I created statement like this
@"SELECT * FROM book abook WHERE abook.part=0 OR abook.part=1 AND abook.isFree!=0"
Could you check please. Is it a correct statement?