Hi
I am trying to find duplicate references in a table but keep getting NULL values returned. I am using the code below.
The customerref keeps coming in as a null. In the field there may be various characters numbers and letters.
Couls someone advise how I can adapt the code so it shows the customeref entrys. Thanks
[link sql]
select ordernumber,customerref, count(1) as CNT
from orderheader
group by customerref,OrderNumber
HAVING (count(1) > 1) Link[/url]
I am trying to find duplicate references in a table but keep getting NULL values returned. I am using the code below.
The customerref keeps coming in as a null. In the field there may be various characters numbers and letters.
Couls someone advise how I can adapt the code so it shows the customeref entrys. Thanks
[link sql]
select ordernumber,customerref, count(1) as CNT
from orderheader
group by customerref,OrderNumber
HAVING (count(1) > 1) Link[/url]