There is a pretty good explanation on how to use the CASE statement to write crosstabs in the Sams Teach Yourself Transact-SQL in 21 Days book by McEwan & Solomon.<br>
<br>
Here is an example of one I did:<br>
select case<br>
when HHC_Occupation_Cd = '1'<br>
then '1.Professional/Technical'<br>...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.