We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Submitted by: Harald Klomann (harrykl)
CREATE TABLE A (NR INTEGER, S CHAR(1), X INTEGER); CREATE TABLE B (NR INTEGER);
These statements should result in an error, because column X is not member of table B
select * from a where nr in (select x from b);
select * from a where exists (select x from b);
The text was updated successfully, but these errors were encountered:
description: CREATE TABLE A (NR INTEGER, S CHAR(1), X INTEGER); CREATE TABLE B (NR INTEGER);
These statements should result in an error, because column NR is not member of table B
=>
Sorry, something went wrong.
Commented by: @dyemanov
You're wrong. Sub-selects can reference fields from outer contexts, so X is resolved as A.X.
status: Open [ 1 ] => Resolved [ 5 ]
resolution: Won't Fix [ 2 ]
status: Resolved [ 5 ] => Closed [ 6 ]
No branches or pull requests
Submitted by: Harald Klomann (harrykl)
CREATE TABLE A (NR INTEGER, S CHAR(1), X INTEGER);
CREATE TABLE B (NR INTEGER);
These statements should result in an error, because column X is not member of table B
select * from a where nr in (select x from b);
select * from a where exists (select x from b);
The text was updated successfully, but these errors were encountered: