Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

SQL Script

$
0
0
create table t1(id number, description varchar2(25));Insert table t1(id, description) values(101,'10000;01/02/2015');Insert table t1(id, description) values(102,'10003;21/01/2015');Insert table t1(id, description) values(103,'01/02/2015;10002');Insert table t1(id, description) values(104,'13/01/2015;10004');Like that we have data, now we want to separate the description column one is date and another one is number.If possible plz build any one new script the below output and let me know. thanks.......Output: id description date number101 10000;01/02/2015 1/2/2015 10000102 10003;21/01/2015 21/01/2015 10003103 01/02/2015;10002 1/2/2015 10002104 13/01/2015;10004 13/01/2015 10004

Viewing all articles
Browse latest Browse all 3145

Trending Articles