I work for a school system as a data guy, and in my latest report that I need to send to the state I need to send some data about students taking tests. Easy enough.
The problem arises from this fact: when teachers or administrators entered data concerning students with multiple special needs they sometimes filled it out right, which is by saying multiple disabilities, and sometimes they made individual entries for each special need. For instance a student might have a learning disability and an emotional disability and the admin would make two entries, rather than one.
My query, which is long so I won't bother with the whole thing, needs something like this:
select
stuff
,morestuff
,CASE
When [**a student is in the list multiple times**]
Then '**Multiple Disabilities**'
When '01'
Then 'Blind'
and so forth.
In my head it seems easy, but when I try and commit it to code it falls apart.