I have a more thousand lines "with as" sql. When I try to run it I've got a message: "Expression must have same datatype as corresponding expression", but I cannot get any info where is it and which field is not the same type. In a normal sql I can get it, but in with as I cannot. Yes I know "with as" is not the best practice, but I have to port an old sql to a new environment.
Is there any trick to get where is it?
2.1m questions
2.1m answers
60 comments
57.0k users