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

Split a comma

$
0
0

Hi guys, I'm pratically fighiting with SSIS. I got in a table 100000 rows (string) as 10.36 236.25 56.77 and so on but I got also ( and that's qhy I'm fighting) ten rows as Paris,52.36 Rome,18.22 London,22.55 etc. Pratically SSIS, only for ten rows, mix two column. I neeed to understand why, but meanwhile I would report some data. I was wondering as I can split the comma so that I can retrieve only the number. That's the DDL:

create table fcon (code varchar (10), charge varchar (30)) insert into fcon values ('Lisboa', '36.03'), ('0', 'Rome,52.53'), ('0', 'Paris,14.05'), ('Miami','11.39')

code charge
Lisboa 36.03
0 Rome,52.53
0 Paris,14.05
Miami 11.39

What I got (SSIS stuff)

What I need:

code charge
Lisboa, 36.03
Rome,52.53
Paris,14.05
Miami 11.39


Viewing all articles
Browse latest Browse all 23857

Trending Articles



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