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.