ebrian,
Thanks for your reply.I did n't get it.
I am creating csv file to automatically format into excel.pl see bellow the sql query. the query wroks fine.
i got the result. But in excel it shows each select count value
775 888 999 234 546 in one excel cell.
In order to separate each count result in each separate cell in excel.
i need extra comma(,) after each count to automatically format in excel.