Hozawa, Thank you very much for your effort.
Actually I'm new in Jasper Report, and don't have much knowledge. I could concatenate whole statement in one line, but I do not know how to fetch the second line and put in the report, I tried to do this "$F{ID} == 1001" in variables, but it's only TRUE when you put the ID of First row, and gives the name, but once you put a variable with id 1010, it does not fetch the name but only returns NULL.
Could you help me solve this.
Thank you.