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

Re: Derived table @prompt

$
0
0

Hi

 

I am suspecting issue with below WHERE condition. So first check below where condition syntax is working or not ..then you can use in the derive table.

 

where EMR_REPORTING.dbo.vMH_MEASURE_PRACTICE.RPT_YEAR_MONTH = convert(varchar(6), dateadd(MM,-3, convert(datetime, substring(cast(@rpt_year_month as varchar), 5,2) + '/' + '30'

+ '/'+ substring(cast(@rpt_year_month as varchar), 1,4))), 112)) b


Viewing all articles
Browse latest Browse all 9760

Trending Articles



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