Subject Re: [ib-support] Count and distinct
Author Lester Caine
Jason Chapman (JAC2) wrote:
> Hi Ann,
> Row 1:
> x = 'ABC'
> y = 'DEF'
> Row 2:
> x= 'ABCDE'
> y= 'F'
>
> Would break that wouldn't it.

>>select count (distinct (x || y)) from <table>

So -

distinct (x || '!' || y)

where the ! is a 'safe character for your application.

--
Lester Caine
-----------------------------
L.S.Caine Electronic Services