Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3353

Re: Last payment applied to a single invoice

$
0
0

Hi Caleb

 

If you are confident that the sub query will naturally bring multiple entries back and a DISTINCT does not resolve, you can also use SELECT TOP 1. The best way to test is to isolate the sub query and run it on its own to see the values and why multiple records are found.

 

Glad you got it to work.

 

Kind regards

 

Peter Juby


Viewing all articles
Browse latest Browse all 3353

Trending Articles



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