Koen, you're assuming the question is about how to get the data from the database. There isn't anything in the original post which suggests that is the problem.
In fact there isn't anything in the original post which says anything about the problem. "renu", could you post a question which describes your problem in some detail? Read our FAQ entry
TellTheDetails (click that link) for a more complete explanation.