From: selva kumar <selva.logic@hotmail.com>
To: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Subject: Query will execute when inner query have issue
Date: Thu, 23 Jan 2020 07:34:40 +0000
Message-ID: <MAXPR01MB21574B7FDC100157148384EEE20F0@MAXPR01MB2157.INDPRD01.PROD.OUTLOOK.COM> (raw)
Greetings,
We tried query in a following manner.
SELECT * FROM A where A.id IN (SELECT B.id from B);
In the above query Table B does not have id. But this query return all A table records
Note : If we run inner query alone, It throws error like “Field is not found”
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986; for Windows 10
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: selva.logic@hotmail.com
Subject: Re: Query will execute when inner query have issue
In-Reply-To: <MAXPR01MB21574B7FDC100157148384EEE20F0@MAXPR01MB2157.INDPRD01.PROD.OUTLOOK.COM>
References: <MAXPR01MB21574B7FDC100157148384EEE20F0@MAXPR01MB2157.INDPRD01.PROD.OUTLOOK.COM>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox