출력할 데이터가 하나 있습니다.
화면상에서 각 필드의 내용마다 테이블의 하나의 레코드로 입력을 합니다.
이 내용을 쿼리를 통해서. 결과를 가져 오려고 합니다.
tempAppNo |
mainQuestionNo |
subQuestionNo |
insuredType |
answer |
20090713001737 |
1 |
0 |
0 |
Y |
20090713001737 |
1 |
1 |
0 |
Y |
20090713001737 |
1 |
2 |
0 |
Y |
20090713001737 |
2 |
0 |
0 |
Y |
20090713001737 |
2 |
0 |
1 |
Y |
20090713001737 |
2 |
1 |
0 |
C |
20090713001737 |
2 |
1 |
1 |
Y |
20090713001737 |
4 |
0 |
0 |
Y |
20090713001737 |
5 |
0 |
0 |
N |
20090713001737 |
6 |
0 |
0 |
N |
20090713001737 |
7 |
0 |
0 |
N |
이 테이블의 내용을 가지고 answer 부분만 발췌 하여
mainQuestionNo quest01(answer) quest02(answer) ....... quest08(answer)
1 Y Y N(데이터가 없으므로)
2 Y Y N
4 Y N N
5 N N N
이런 형태로 가져오고 싶습니다.
물론 answer 값은 Y/N 값이 되기도 하고 일반 텍스트 문장이 될수 있습니다.
고수님들 도움 부탁 드립니다. 굽신 굽신..
키값은
tempAppNo |
mainQuestionNo |
subQuestionNo |
insuredType |
필드의 내용입니다... 도와주세효.
|