folks, I have the following query in SQLite:
select license, username from check_table where
(
username not in (
select username from Address
)
) order by license, username;
Address
is another table. The fun part is: Address
has no username
column!!
Details:
- Result:
Query finished in 0.004 second(s)
- If I modify the
username
part (e.g. touserrname
) I get ano such column
error, which is totally fine - it never returns any results, even when I replace
username
withmail_username
(which actually exists) in the sub-select - which is totally strange, because it really should.
Now, my question is: Why don't I get an error here?! And does it have something to do with the fact that I never get any results?