Consider this query:
I want to be able to do the commented row, but it tells me it can't find "Nash Spanish Letters". Is there a way to do this?
Thanks!
Code:
select
case when NumLetters <>'0' and SpanishLetter = 'Yes' and Office ='NA' then NumLetters else '0' end "Nash Spanish Letters",
case when NumLetters <>'0' and SpanishLetter <> 'Yes' and Office ='NA' then NumLetters else '0' end "Nash English Letters"
--"Nash Spanish Letters" + "Nash English Letters" "Total Letters"
from mytable
I want to be able to do the commented row, but it tells me it can't find "Nash Spanish Letters". Is there a way to do this?
Thanks!