Quantcast
Viewing all articles
Browse latest Browse all 9269

Re: Switch or case

Image may be NSFW.
Clik here to view.
NULL.PNG

Please see above null values for the SQL Query in the report which is making for duplicate reports.

 

Note:Invoicestring as Key

 

 

 

select inv.InvoiceString,inv.BusinessUnit,inv.InvoiceLanguage,--term.Message

case when term.[Order]=1  then term.Message end as Message1

from

  t_rpt_invoice inv

  left join  t_rpt_InvoiceTerms term on inv.BusinessUnit=term.BusinessUnit and inv.InvoiceLanguage=term.InvoiceLanguage


Viewing all articles
Browse latest Browse all 9269

Trending Articles



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