Subject | Re: query join issue |
---|---|
Author | lance8086 |
Post date | 2005-07-16T21:20:57Z |
--- In firebird-support@yahoogroups.com, "Arno Brinkman"
> As notice by david your query runs a cartesian product this is duehow you use the aliases. (This is
> fixed in FB2)Thanks very much!!! That worked great. Never would have guessed it.
> Anyway, if you use an alias for a table use them for all tables.
>
> SELECT
> S2.userid,
> S2.groupid,
> S1.username
> FROM
> S S1
> JOIN S S2 ON (S2.userid = S1.userid)
> WHERE
> S1.groupid = '004'