Home » Developer & Programmer » Forms » Access to Oracle sql conversion
Access to Oracle sql conversion [message #78293] Mon, 11 February 2002 10:47 Go to next message
Phil
Messages: 32
Registered: March 2001
Member
Hi
I have been working on a routine that converts access Queries built in access to Oracle queries.
If anyone is interested please send me an email explaining why you are interested and i will get back to you

Here are some simple examples

access 97 sql

SELECT MULT001.RISK_KEY, MULT001.POLKEY, MULT001.LOCATION
FROM ((((MULT001 LEFT JOIN MULT004 ON (MULT001.POLKEY = MULT004.POLKEY) AND (MULT001.RISK_KEY = MULT004.RISK_KEY)) LEFT JOIN MULT002 ON (MULT001.POLKEY = MULT002.POLKEY) AND (MULT001.RISK_KEY = MULT002.RISK_KEY)) LEFT JOIN MULT003 ON (MULT001.POLKEY = MULT003.POLKEY) AND (MULT001.RISK_KEY = MULT003.RISK_KEY)) LEFT JOIN MULT005 ON (MULT001.POLKEY = MULT005.POLKEY) AND (MULT001.RISK_KEY = MULT005.RISK_KEY)) LEFT JOIN MULT006 ON (MULT001.POLKEY = MULT006.POLKEY) AND (MULT001.RISK_KEY = MULT006.RISK_KEY);

Converted sql
SELECT
t1.RISK_KEY,
t1.POLKEY,
t1.LOCATION
FROM
MULT001 t1,MULT004 t2,MULT002 t3,MULT003 t4,MULT005 t5,MULT006 t6
WHERE t1.RISK_KEY = t2.RISK_KEY(+)
AND t1.POLKEY = t2.POLKEY(+)
AND t1.RISK_KEY = t3.RISK_KEY(+)
AND t1.POLKEY = t3.POLKEY(+)
AND t1.RISK_KEY = t4.RISK_KEY(+)
AND t1.POLKEY = t4.POLKEY(+)
AND t1.RISK_KEY = t5.RISK_KEY(+)
AND t1.POLKEY = t5.POLKEY(+)
AND t1.RISK_KEY = t6.RISK_KEY(+)
AND t1.POLKEY = t6.POLKEY(+)

Example 2
----------
Access sql

SELECT MULT001.RISK_KEY, MULT001_1.RISK, MULT001_1.RISK_TO
FROM MULT001 LEFT JOIN MULT001 AS MULT001_1 ON (MULT001.LOCATION = MULT001_1.LOCATION) AND (MULT001.POLKEY = MULT001_1.POLKEY) AND (MULT001.RISK_KEY = MULT001_1.RISK_KEY)
WHERE (((MULT001_1.RISK_KEY)="1200000001069759001001ATR") AND ((MULT001.RISK)="001") AND ((MULT001.RISK_TO)=#2/10/2002#))
GROUP BY MULT001.RISK_KEY, MULT001_1.RISK, MULT001_1.RISK_TO, MULT001_1.RISK_KEY
HAVING (((MULT001.RISK_KEY)="1200000001069759001001ATR") AND ((MULT001_1.RISK)="001") AND ((MULT001_1.RISK_TO)=#2/10/2002#))
ORDER BY MULT001.RISK_KEY, MULT001_1.RISK_KEY DESC;

Converted sql
SELECT
t1.RISK_KEY,
t2.RISK,
t2.RISK_TO
FROM
MULT001 t1,MULT001 t2
WHERE t1.RISK_KEY = t2.RISK_KEY(+)
AND t1.POLKEY = t2.POLKEY(+)
AND t1.LOCATION = t2.LOCATION(+)
AND(((t2.RISK_KEY)='1200000001069759001001ATR')
AND ((t1.RISK)='001')
AND ((t1.RISK_TO)='10-Feb-2002'))
GROUP BY t1.RISK_KEY , t2.RISK , t2.RISK_TO , t2.RISK_KEY
HAVING (((t1.RISK_KEY)='1200000001069759001001ATR')
AND ((t2.RISK)='001')
AND ((t2.RISK_TO)='10-Feb-2002'))

ORDER BY t1.RISK_KEY , t2.RISK_KEY DESC
Re: Access to Oracle sql conversion [message #79188 is a reply to message #78293] Mon, 13 May 2002 22:21 Go to previous messageGo to next message
Joe
Messages: 138
Registered: November 1999
Senior Member
I would be very interested in an Access Query --> Oracle View converter. Did you ever make any progress with this?
Re: Access to Oracle sql conversion [message #79607 is a reply to message #78293] Tue, 25 June 2002 19:34 Go to previous messageGo to next message
Ed Smith
Messages: 1
Registered: June 2002
Junior Member
If you have a program that does this conversion, can I please get a copy. Thanks,
Ed
Re: Access to Oracle sql conversion [message #80541 is a reply to message #78293] Wed, 09 October 2002 18:14 Go to previous messageGo to next message
rex seven
Messages: 1
Registered: October 2002
Junior Member
i am very interested........please email me back
thanks
Re: Access to Oracle sql conversion [message #80551 is a reply to message #78293] Thu, 10 October 2002 11:21 Go to previous message
Alberto Jiménez
Messages: 1
Registered: October 2002
Junior Member
Who I have to kill, to get your code?

Please, in the name of humanity send me a copy.
Previous Topic: Disable Button
Next Topic: Call Procedure & Mouse Pointer
Goto Forum:
  


Current Time: Thu Apr 25 00:05:53 CDT 2024