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

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -