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

Parsing failed when creating derived table

$
0
0

Hello,

 

I am trying to create a derived table in the universe and can get the SQL to validate but then am getting a parsing failed error.  Here is the code I used. Also, when I take the ' ' off the field names I get a multi-part identifier cannot be bound. 

 

WITH date_range (calc_date) AS (

     SELECT DATEADD(DAY, DATEDIFF(DAY, 0, 'Opportunity_T5.Project_End_Date__c') - DATEDIFF(DAY, 'Opportunity_T5.Project_Start_Date__c' , 'Opportunity_T5.Project_End_Date__c'), 0)

      UNION ALL SELECT DATEADD(DAY, 1, calc_date)

          FROM date_range, Opportunity_T5

          WHERE DATEADD(DAY, 1, calc_date) <= 'Opportunity_T5.Project_End_Date__c')
SELECT calc_date, Opportunity_T5.Id

FROM date_range, Opportunity_T5

 

Thanks!

Kara


Viewing all articles
Browse latest Browse all 8975

Trending Articles



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