I use an SQLite database on my iPhone application and i need to perform a task that require a nested query. However, my query seems not working, i have googled it and i found that SQLite doesn’t support Subquerys.
Is there any solution?
EDIT:
This is the query that doesn’t work for me:
select count(*) from quiz where theme=(select id from theme where nom="Houses") and etat=0;
you can use joins instead of nested query, that will work.
for reference please check this…
Nested statements in sqlite