次のクエリを試すことはできますか?
ANSI-89で初:あなたは(参加)locationIdによってフィルタリングする必要がある場合には
SELECT
a.locationid as locationIdA, a.qty as qtryA,
b.locationid as locationIdB, b.qty as qtryB,
c.locationid as locationIdC, c.qty as qtryC
FROM
a, b, c
:
SELECT
a.locationid as locationIdA, a.qty as qtryA,
b.locationid as locationIdB, b.qty as qtryB,
c.locationid as locationIdC, c.qty as qtryC
FROM
a, b, c
WHERE
a.locationid=b.locationid
AND
b.locationid=c.locationid
また、あなたは、ANSI-92と試みることができる:
SELECT
a.locationid as locationIdA, a.qty as qtryA,
b.locationid as locationIdB, b.qty as qtryB,
c.locationid as locationIdC, c.qty as qtryC
FROM
a
INNER JOIN b
ON
a.locationid=b.locationid
INNER JOIN c
ON
a.locationid=c.locationid
を
'join 'を試してみてください。 '選択したlocationid、qtyA、qtyB、qtyCをa.locationid = b.locationid join c on c.locationid = b.locationid; – Mekicha