- Local time
- Tomorrow, 00:46
- Joined
- Jan 20, 2009
- Messages
- 12,895
I have a CTE I want to use in a big query. The CTE works perfectly.
The big query works perfectly until I join in the simple subquery that uses the CTE.
Once combined, the big query returns two records then throws an error:
The line referred to in the error is the first line of the CTE declaration: WITH ctename AS ( etc
There are no conversions from char to money in the CTE or the big query and no joins between char and money columns.
The big query works perfectly until I join in the simple subquery that uses the CTE.
Once combined, the big query returns two records then throws an error:
Code:
'Cannot convert a char value to money. The char value has incorrect syntax.'
The line referred to in the error is the first line of the CTE declaration: WITH ctename AS ( etc
There are no conversions from char to money in the CTE or the big query and no joins between char and money columns.