Help rewriting subquery
Posted by:
Plane Guy
Date: April 27, 2005 05:30AM
I am having dificulties rewriting the following subquery, to be compatible with an older version of MySQL.
This is what I would like to achieve:
SELECT t1.ID, t1.lft, t1.rgt, t1.parent, t3.lft, t3.rgt
(SELECT Count(*) FROM t1 as t2 WHERE t2.lft < t1.lft AND t2.rgt > t1.rgt ) AS Level
FROM t1 INNER JOIN t1 AS t3 on t1.parent = t3.ID
ORDER BY t1.lft
Can anyone help?
Subject
Written By
Posted
Help rewriting subquery
April 27, 2005 05:30AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.