2
SELECT
ITM, OPB, INB,
(SELECT CODE FROM CodeandDescription WHERE ITM = RM_S4G100_KYBIN.ITM) As CODE,
(SELECT ITMD FROM CodeandDescription WHERE ITM = RM_S4G100_KYBIN.ITM) As ITMD,
CLB, DTE
FROM
RM_S4G100_KYBIN
WHERE
(DTE >= '01 Oct 2011') and (DTE <= '31 Oct 2011')
AND
(SELECT ITMD
FROM CodeandDescription
WHERE ITM = RM_S4G100_KYBIN.ITM) IS NOT NULL
AND
(OPB <> '0.00000' OR INB <> '0.00000' OR CLB <> '0.00000')
ORDER BY
ITMD, DTE
ありがとうございます。私はそれを試してみる。 – user1254079
ありがとう!それは働く=) – user1254079