Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

JOIN migration from Oracle to MySQL

From: <spikerlion(at)gmx.de>
Date: Fri Aug 31 2007 - 04:30:56 EDT


Hello,

I've two LEFT OUTER JOINS in the WHERE section in an Oracle script like:

select ...
from...
where
...
and PT1.ID (+) = bl.PARENTTYPE_1
and PT2.ID (+) = bl.PARENTTYPE_2
...

MySQL knows LEFT OUTER JOINS in the FROM section but two joins with the same table aren't accepted.

example:
select ...
from
tableA PT1 LEFT OUTER JOIN tableC bl ON (PT1.ID = bl.PARENTTYPE_1), tableB PT2 LEFT OUTER JOIN tableC bl ON (and PT2.ID = bl.PARENTTYPE_2), ...

-> doesnt' work.

Exits a solution for this example? Other syntax possibilities?

regards,
Spiker

-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kanns mit allen: 
http://www.gmx.net/de/go/multimessenger

-- 
MySQL General Mailing List
For list archives: 
http://lists.mysql.com/mysql
To unsubscribe:    
http://lists.mysql.com/mysql?unsub=lists@pantek.com
Received on Fri Aug 31 04:33:06 2007
Do you need help?X

This archive was generated by hypermail 2.1.8 : Sun Oct 07 2007 - 10:08:16 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library