Quantcast
Channel: SCN : Unanswered Discussions - Reporting and Printing
Viewing all articles
Browse latest Browse all 776

I have generated a query but some entries are duplicates

$
0
0

Hello,

 

Could anyone please advise how I can remove the duplicate entries from my query?

 

The query is a simple one. I want to report on BP reference numbers, Job locations, when the jobs were completed (date & time), cost centre, project code and the username of the person who raised the sales order.

 

 

 

 

 

Select

T0.[NumAtCard], T0.[U_IIS_sskJobLoc], T0.[U_IIS_sskJobStatusD], T0.[U_IIS_sskJobStatusT], T0.[U_IIS_sskCostCode], T0.[Project]

 

 

From

ORDR T0 INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OUSR T2 ON T0.UserSign = T2.USERID

 

 

Where

T2.[U_NAME] =[%0] AND  T0.[NumAtCard] Like '4106_%%'

 


When the query is executed, most of the lines are duplicated once, twice or three times.

 

Is there a way I can remove the duplicates?

 

 

 

 

Many thanks.


Viewing all articles
Browse latest Browse all 776

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>