2016-08-07 11 views
0

以内に参加して、連合でインナーは、私は3つのテーブルを持つ列のIDと名前を持つ最初のテーブルの名前memberformレポート

id  description 
12  Blue with brown 

を(Vivl_Statisticという名前の)第三のテーブル私は同じ列があります

id  description 
12  green with yellow 

を、私はこの結果を取得したい:

john blue with brown 
john green with yellow 
は私がimat_statistc、IDとvivl_statistic、IDとmemberformからIDをリンクするウィザードを使用してみました。しかし、私の報告書には何も現れなかった。私はまた、同じ碑文に記述を含める必要があります。

答えて

0
(select memberform .name, imat_statistic.description from test inner join 
    test1 on memberform .id = imat_statistic.id) 
union all 
(select memberform .name, Vivl_Statistic.description from test inner join 
    test3 on memberform .id = Vivl_Statistic.id) ; 

データソースに接続しているときに、[コマンドの追加]をクリックしてこのクエリを入力します。レポートの名前と説明フィールドを使用します。

関連する問題