Oracle で、このクエリが何かを返す理由を説明していただけますか。
SELECT discounts.DiscountId,
discounts.ShortDisplay,
discounts.Display,
discounts.Description,
BillDetails.BillId,
BillDetails.BillRow,
BillDetails.BillId AS BillIdTax,
BillDetails.BillRow AS BillRowTax,
BillDetails.FEDERAL_TAX_POSTPAID,
BillDetails.TOTAL_RATE
FROM discounts
INNER JOIN BillDetails
ON discounts.DiscountId = BillDetails.DiscountId
RIGHT OUTER JOIN BillDetailsTax
ON BillDetails.BillId = BillDetailsTax.BillId
AND BillDetails.BillRow = BillDetailsTax.BillRow
WHERE BillDetails.BillId = 602237
そして、これは何もありません:
SELECT discounts.DiscountId,
discounts.ShortDisplay,
discounts.Display,
discounts.Description,
BillDetails.BillId,
BillDetails.BillRow,
BillDetails.BillId AS BillIdTax,
BillDetails.BillRow AS BillRowTax,
BillDetails.FEDERAL_TAX_POSTPAID,
BillDetails.TOTAL_RATE
FROM BillDetails,
BillDetailsTax BillDetails,
discounts
WHERE BillDetails.BillRow = BillDetailsTax.BillRow(+)
AND BillDetails.BillId = BillDetailsTax.BillId(+)
AND BillDetails.DiscountId = discounts.DiscountId
AND BillDetails.BillId = 602237
これらの 2 つのクエリは似ていませんか?
ありがとうございました!