2 つのクエリがあり、それらの結果セットの違いを見つける必要があります。私のクエリは次のとおりです。
select star_ident,transition_ident,fix_ident,min(sequence_num)
from corept.std_star_leg c
where airport_ident='KLAS' and data_supplier='J'
group by star_ident,transition_ident;
select name,trans
from skyplan_deploy.deploy_stars
where apt='KLAS';
これらは私の 2 つのクエリです。最初は左結合を使用しましたが、結果を取得できませんでした。
select star_ident,transition_ident,fix_ident,min(sequence_num)
from corept.std_star_leg c
left join
(
select name,trans
from skyplan_deploy.deploy_stars
where apt='KLAS' and name != trans
) a
on star_ident=a.name and fix_ident=a.trans
where airport_ident='KLAS' and data_supplier='J' and a.name is null
group by star_ident,transition_ident;
上記のクエリを試しましたが、完全に間違った結果セットが返されます。これを作成するのを手伝ってくれますか?
ありがとうございました。