ColumnAin the subquery (SELECT ColumnA FROM #TableB)
refers to ColumnA#TableA, which is a valid column in the SELECT list.
Therefore, there is no error, and you get three rows as you compare # TableA.ColumnA to C # TableA.ColumnA
, ColumnA -, , (, ColumnAB), .
:
CREATE TABLE
CREATE TABLE
INSERT INTO
INSERT INTO
INSERT INTO
INSERT INTO
SELECT *
FROM
WHERE ColumnA IN(SELECT ColumnAB FROM
Msg 207, 16, 1, 14
"ColumnAB".