That's not something that's easy to produce with SQL, nor should you try. It's mostly a formatting problem, which should be done by the front-end tool generating the query (ASP, Crystal Reports, whatever...).
i.e. use a normal Select statement like:
Select ID, Name, Email from YourTable
and then have your FE tool print/display the resultset in the format you want.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.