hi, just want to make sure is it my conversion is correct regarding the MS Access SQL and "Native" SQL conversion regarding the join:
Here is the SQl from MS Access
FROM (ASIA.PROD_ORDER_DETAIL_ASIA INNER JOIN ASIA.PART_ASIA ON (ASIA.PROD_ORDER_DETAIL_ASIA.BUSINESS_UNIT_ID =
ASIA_PART_ASIA.BUSINESS_UNIT_ID) AND (ASIA.PROD_ORDER_DETAIL_ASIA.PART_NUM = ASIA.PART_ASIA.PART_NUM)) INNER JOIN
CORP.BUSINESS_UNITS ON ASIA.PROD_ORDER_DETAIL_ASIA.BUSINESS_UNIT_ID = CORP.BUSINESS_UNITS.BUSINESS_UNIT_ID
and i converted into Native SQL as the following:
FROM ASIA.PROD_ORDER_DETAIL ASIA P, CORP.BUSINESS_UNITS C, ASIA.PART_ASIA A
WHERE (P.BUSINESS_UNIT_ID = A.BUSINESS_UNIT_ID AND P.PART_NUM = A.PART_NUM) AND
P.BUSINESS_UNIT_ID = C.BUSINESS_UNIT_ID
Hopefully another pair of eyes will giving me whether something is wrong.....
Here is the SQl from MS Access
FROM (ASIA.PROD_ORDER_DETAIL_ASIA INNER JOIN ASIA.PART_ASIA ON (ASIA.PROD_ORDER_DETAIL_ASIA.BUSINESS_UNIT_ID =
ASIA_PART_ASIA.BUSINESS_UNIT_ID) AND (ASIA.PROD_ORDER_DETAIL_ASIA.PART_NUM = ASIA.PART_ASIA.PART_NUM)) INNER JOIN
CORP.BUSINESS_UNITS ON ASIA.PROD_ORDER_DETAIL_ASIA.BUSINESS_UNIT_ID = CORP.BUSINESS_UNITS.BUSINESS_UNIT_ID
and i converted into Native SQL as the following:
FROM ASIA.PROD_ORDER_DETAIL ASIA P, CORP.BUSINESS_UNITS C, ASIA.PART_ASIA A
WHERE (P.BUSINESS_UNIT_ID = A.BUSINESS_UNIT_ID AND P.PART_NUM = A.PART_NUM) AND
P.BUSINESS_UNIT_ID = C.BUSINESS_UNIT_ID
Hopefully another pair of eyes will giving me whether something is wrong.....