Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Comma separated output into columns

$
0
0

Hi,

I've the following Query :

select ParameterValue
 FROM Event.vEvent 
 join event.vEventParameter on event.vEventParameter.EventOriginId=event.vEvent.EventOriginId
 where EventNumber=0

which gives the following output in a single column:

VSSDATA_FS,171423,106013,142420,11,248433,Wed Jun  4 03:40:58 EDT 2014
DATAGRP_FS,2302724,1074283,2208370,39,3282653,Wed Jun  4 07:54:26 EDT 2014
DATAPUB_FS,100837,5998,36688,49,42686,Wed Jun  4 03:04:42 EDT 2014
SHT_APT_FS,1008350,651,3906,84,4557,Mon Jun  2 03:12:35 EDT 2014
SHT_GER_FS,806699,809987,747788,52,1557775,Thu Jun  5 03:55:33 EDT 2014
DATAGRP1_FS,151256,24805,120496,33,145301,Tue Jun  3 05:11:31 EDT 2014

I need to separate the above output in different columns using separators as ',' (comma).

Please help me in achieving this as I'm a newbie in SQL.


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>