Subject | Re: [firebird-support] Written using INNER JOIN syntax, how? |
---|---|
Author | Paul Vinkenoog |
Post date | 2003-07-30T23:27:06Z |
Hi Robert,
MAX( Eca.maxSeverity ),
SUM( Eca.elementCount )
FROM Eca
JOIN Link ON Link.childId = Eca.oid
JOIN Path ON Path.descendentId = Link.parentId
WHERE Path.ancestorId = 8
Grtz,
Paul Vinkenoog
> How would the following query be rewritten using INNER JOIN syntax?SELECT
>
> SELECT MAX( Eca.maxSeverity), SUM( eca.elementCount )
> FROM Eca, Path, Link
> WHERE Path.ancestorId = 8
> AND Path.descendentId = Link.parentId
> AND Link.childId = Eca.oid
MAX( Eca.maxSeverity ),
SUM( Eca.elementCount )
FROM Eca
JOIN Link ON Link.childId = Eca.oid
JOIN Path ON Path.descendentId = Link.parentId
WHERE Path.ancestorId = 8
Grtz,
Paul Vinkenoog