iamareplicant
Programmer
Experts,
I am writing my first PL/SQL statements in my Access2K3 pass-thru queries. I need to convert exisitng Access queries from native Access to PL/SQL. I have had some success, but mostly frustration.
Here is one query that, if I can get a handle on, would serve as an example to hammer out about 30 other queries that need to be converted.
I am hoping for one of you experts to, not rewrite the query per se, but give me a translation of the Access query to PL/SQL.
The big issue of course is the way that Oracle PL/SQL does joins.
Here is the query I want to use as my example:
I beleive that PL/SQL should handle this like (and the below is very crude - it is the join part of the SQL statement that I am fussing over):
Any help would be most appreciated.
JBG
I am writing my first PL/SQL statements in my Access2K3 pass-thru queries. I need to convert exisitng Access queries from native Access to PL/SQL. I have had some success, but mostly frustration.
Here is one query that, if I can get a handle on, would serve as an example to hammer out about 30 other queries that need to be converted.
I am hoping for one of you experts to, not rewrite the query per se, but give me a translation of the Access query to PL/SQL.
The big issue of course is the way that Oracle PL/SQL does joins.
Here is the query I want to use as my example:
Code:
SELECT TEST_SKILLTRAC.SKILLTRAC_ID,
TEST_SKILLTRAC.SKILLTRAC_NAME,
TEST_SKILLTRAC_USER.USER_ID,
TEST_SKILLTRAC_STATUS.SKILLTRAC_STATUS_CD
FROM
(TEST_SKILLTRAC INNER JOIN TEST_SKILLTRAC_USER ON
TEST_SKILLTRAC.SKILLTRAC_ID = TEST_SKILLTRAC_USER.SKILLTRAC_ID)
INNER JOIN TEST_SKILLTRAC_STATUS ON
TEST_SKILLTRAC_USER.SKILLTRAC_STATUS_CD = TEST_SKILLTRAC_STATUS.SKILLTRAC_STATUS_CD
WHERE (((TEST_SKILLTRAC_USER.USER_ID)>0) AND ((1)=1))
I beleive that PL/SQL should handle this like (and the below is very crude - it is the join part of the SQL statement that I am fussing over):
Code:
SELECT
FIELDS
FROM
tbl1,
tbl2,
tbl3,
WHERE
tbl1.field = tb2.field AND
tbl2.field = tbl3.field
AND
tbl1.userid = 2
Any help would be most appreciated.
JBG