Quantcast
Channel: Microsoft Dynamics GP Forum - Recent Threads
Viewing all articles
Browse latest Browse all 14686

Number of Invoice of an customer! what are the table involved

$
0
0

I m trying to calculate the total number of invoice of an customer through sql query.

query

select CUSTNMBR , Count(DISTINCT SOPNUMBE ) from SOP30200 where SOPTYPE=3 GROUP BY CUSTNMBR

I get the following results

SMART LIST RESULT 

  

why there is an difference between my dataset and smart list dataset.


Viewing all articles
Browse latest Browse all 14686

Trending Articles



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