-2
こんにちは私は3つのテーブルを持っている私は3つのテーブルから同じ列を抽出したい選択クエリを書くためにこのより良い方法です。3つの異なるテーブルから同じ列を抽出するSQL
select * from
(
select col1,
select id1 from testid1 where name=pnrtable1.name,
col3 from table1
union all
select coltab1,
select newid2 from testid2 where name=pnrtable2.name,
coltab3 from table2
union all
select namecol1,
select id3 from testid3 where name=pnrtable3.name,
namecol3 from table3
)
あなたのクエリでは、あなたの構文が間違っています。 –
あなたは 'MySQL'または' SQL Server'を使用していますか? – Squirrel
私はNetezzaを使用しています – Sai