Subject | Re: [firebird-support] Trouble with select |
---|---|
Author | Woody |
Post date | 2012-02-08T19:36:15Z |
From: "raistware" <raul.ferriz@...>
select DISTINCT id, value
from MyTable
where id in (1, 1, 1, 2, 3, 3, 4)
Although, I fail to see the reasoning behind duplicates of the same number
in the IN clause. They should be stripped out before passing the query in
your code.
HTH
Woody (TMW)
> HiTry:
>
> Im trying a bit difficult select:
>
> select id, value
> from MyTable
> where id in (1, 1, 1, 2, 3, 3, 4)
>
select DISTINCT id, value
from MyTable
where id in (1, 1, 1, 2, 3, 3, 4)
Although, I fail to see the reasoning behind duplicates of the same number
in the IN clause. They should be stripped out before passing the query in
your code.
HTH
Woody (TMW)