SQL Server DISTINCT -


select dbo.clientrep.ref, dbo.rep2.ref   dbo.clientrep    full outer join dbo.rep2 on (dbo.rep2.ref = dbo.clientrep.ref)     dbo.rep2.ref null or dbo.clientrep.ref null; 

how can specify distinct dbo.clientrep.ref , dbo.rep2.ref returned?

just write select distinct ...

select distinct dbo.clientrep.ref, dbo.rep2.ref dbo.clientrep  full outer join dbo.rep2 on (dbo.rep2.ref = dbo.clientrep.ref) dbo.rep2.ref null or dbo.clientrep.ref null; 

Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -