Re: SQLServer to Oracle

From: salvi <salvi_at_gmx.ch>
Date: 16 Aug 2001 02:30:45 -0700
Message-ID: <d0e08f90.0108160130.468d261d_at_posting.google.com>


try something like this..

SELECT TPARENT.id, TPARENT.name, temp.anzahl FROM TPARENT, (SELECT COUNT(TCHILD.parentid) anzahl, TCHILD.parentid FROM TCHILD GROUP BY TCHILD.parentid) temp
WHERE TPARENT.id = TCHILD.parentid Received on Thu Aug 16 2001 - 11:30:45 CEST

Original text of this message