Subject | Re: [ib-support] firebird client crash with select |
---|---|
Author | Arno Brinkman |
Post date | 2003-04-07T19:33:23Z |
Hi,
SELECT
r.cod_hermes,
r.nom_rev
FROM
revendedora r
WHERE
EXISTS(SELECT * FROM revendedora r1
WHERE r1.cod_hermes = r.cod_hermes
HAVING count(*) > 1)
Regards,
Arno Brinkman
> I´ve installed firebird 1.0 and when i execute the following command myAre you sure it crashed ? or was it taking to long berfore you saw results ?
> client crash.
> select r.cod_hermes, r.nom_rev from revendedora rUse EXISTS() instead :
> where
> r.cod_hermes in
> ( select r1.cod_hermes from revendedora r1
> group by r1.cod_hermes
> having count(*)>1 )
SELECT
r.cod_hermes,
r.nom_rev
FROM
revendedora r
WHERE
EXISTS(SELECT * FROM revendedora r1
WHERE r1.cod_hermes = r.cod_hermes
HAVING count(*) > 1)
Regards,
Arno Brinkman