Subject | Re: [firebird-support] Subqueries and indexes |
---|---|
Author | Milan Babuskov |
Post date | 2006-08-09T15:29:25Z |
yoav112003 wrote:
SELECT distinct ROWID FROM events e
WHERE EXISTS (
SELECT 1
FROM DESTINATION d
WHERE d.IP ='158.125.73.220'
AND d.EVENTID = e.ROWID)
and tell us how it works.
--
Milan Babuskov
http://swoes.blogspot.com/
http://www.flamerobin.org
> I am trying to run the following query (FB 2 RC3):Try:
>
> SELECT distinct ROWID FROM events
> WHERE events.ROWID IN (
>
> SELECT DISTINCT DESTINATION.EVENTID FROM DESTINATION
> WHERE ( (DESTINATION.IP ='158.125.73.220'))
> )
SELECT distinct ROWID FROM events e
WHERE EXISTS (
SELECT 1
FROM DESTINATION d
WHERE d.IP ='158.125.73.220'
AND d.EVENTID = e.ROWID)
and tell us how it works.
--
Milan Babuskov
http://swoes.blogspot.com/
http://www.flamerobin.org