I have two tables called "decks" and "notes"
I tried to SELECT table like this:
SELECT id,
title,COUNT(SELECT lastStatus FROM notes WHERE deckId=id and lastStatus='good') AS goodNotes
FROM decks
but I got this error:
sqlite3_prepare_v2 failure: near "SELECT": syntax error