Black, Michael (IS) <michael.bla...@ngc.com> wrote: > sqlite> explain query plan select * from a left join b where a.id=1 and > b.id=a.id;
Make it select * from a left join b on b.id=a.id where a.id=1; The join condition must be in the ON clause, otherwise the left join behaves like a plain vanilla inner join. -- Igor Tandetnik _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users