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

Re: Problem not all records are being showed.

$
0
0

Hi Jonathan,

 

If you mean that not all documents are considered, please check two things:

  1. Use the ISNULL function directly on fields, instead of on the outcome of a complete query or calculation. So for example SUM(ISNULL(DocTotal,0) - ISNULL(PaidToDate,0))
  2. Using ISNULL on a complete query will not work if the query returns an empty result set. You could incorporate something like CASE WHEN (SELECT COUNT(*) FROM [and the rest of your query here]) = 0 THEN etc. to catch this.

 

Regards,

Johan


Viewing all articles
Browse latest Browse all 9090

Trending Articles



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