On 10/27/19, Benjamin Asher <benashe...@gmail.com> wrote: > It seems both of the following work, > but I’m not really sure why:
I get different answers for the two queries when I try them: CREATE TABLE tab1(x,y); CREATE TABLE tab2(x,y); INSERT INTO tab1 VALUES('constant','string'),('abc','def'),(97,15); INSERT INTO tab2 SELECT * FROM tab1; SELECT * FROM tab1 LEFT JOIN tab2 ON tab1.x='constant'; SELECT * FROM tab1 LEFT JOIN tab2 ON tab1.x=tab2.x WHERE tab1.x='constant'; -- D. Richard Hipp d...@sqlite.org _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users