I have survey responses stored like this:
CODE
SubjectID QstnID Response
1 5
1 10 4.5
1 11
1 12 7.0
----
2 5
2 10
2 11
2 12
1 5
1 10 4.5
1 11
1 12 7.0
----
2 5
2 10
2 11
2 12
If a subject has a value in Response for QstnID 10, 11, or 12 (e.g., SubjectID 1), I'd like to insert a "Yes" in his Response for QstnID = 5. Otherwise, if the subject is missing a Response for QstnID 10, 11, and 12 (e.g., SubjectID 2), insert a "No."
Any suggestions? (There's actually about 10 questions I need to check for Nulls, but they're ID's are all consecutive and adjacent.)
