3
SQLクエリを実行して合計値を取得したいのですが、このクエリの作成方法がわかりません。複数のテーブルから複数の値を合計
select count(*) from table1 where commom_fk in (1234);
select count(*) from table2 where commom_fk in (1234);
select count(*) from table3 where commom_fk in (1234);
select count(*) from table4 where commom_fk in (1234);
select count(*) from table5 where commom_fk in (1234);
これらの結果を1つのクエリで合計したいのですが、これを行う方法ですか?
ありがとうございます。 ----- *
これが回答されました。 しかし、私は複数のcommon_fkでこれをやりたいのですか?
非常に便利、ナイス! –