これは最初のクエリです。
SELECT
SUM(otkupbody_mobile.bruto) AS bruto,
SUM(otkupbody_mobile.neto) AS neto,
SUM(otkupbody_mobile.muvla) AS muvla,
COUNT(*) AS broj_bali
FROM otkupbody_mobile,
otkupheader_mobile
WHERE
(
(otkupheader_mobile.unique_id=otkupbody_mobile.unique_id)
)
これは2番目です:
SELECT
SUM(otkupbody.bruto) AS bruto,
SUM(otkupbody.neto) AS neto,
SUM(otkupbody.muvla) AS muvla,
COUNT(*) AS broj_bali
FROM otkupbody,
otkupheader
WHERE
(
(otkupheader.unique_id=otkupbody.unique_id)
)
両方のクエリの結果を返す 1 つのクエリを作成するにはどうすればよいですか?