Reputation: 6888
Table "TBL1":
Table "TBL2":
I tried this:
SELECT a, b FROM TBL1 Where a > MAX (tbl2.a);
Obviously it didn't work. Ideally the solution would work in sqlite.
Upvotes: 2
Views: 74
Reputation: 15482
You need a subquery for that:
SELECT a, b FROM TBL1 Where a > (SELECT MAX(a) FROM tbl2);
Check the demo here.
Upvotes: 3