Hello
I am using SQL 2000
I have the following code which doesn't quite work:
The problem lies in the 'in' part
Is there any easier way to write this
I want to delete these records so I am testing a select first
Thanks
Damian.
I am using SQL 2000
I have the following code which doesn't quite work:
Code:
select * from #missing_supplier_pcsubsupplier msp
where subledid + ' ' + product_code + ' ' + pcsubsupplierid in
(select distinct subledid, product_code, pcsubsupplierid from #missing_supplier_pcsubsupplier
group by subledid, product_code, pcsubsupplierid
having count(*) = 1)
The problem lies in the 'in' part
Is there any easier way to write this
I want to delete these records so I am testing a select first
Thanks
Damian.