Remove Zero Rows from a String COlumn
Posted: Fri Dec 16, 2011 10:43 pm
Hi All,
I have a scenario where I need to replaces all the rows with Zero into Single space...
Invalid Rows
Eg:
0
00
000
0000
The column is defined as Varchar(20) so it can have any combination of Zero values starting from 1 to 20 zeros
I need to remove all the rows where it has Zero's as defined above. It can be of any combination.
Your help will be really appreciated.
Valid Rows
-------------
1010
0001
1000
I dont want to make any changes to the valid Rows....
I have a scenario where I need to replaces all the rows with Zero into Single space...
Invalid Rows
Eg:
0
00
000
0000
The column is defined as Varchar(20) so it can have any combination of Zero values starting from 1 to 20 zeros
I need to remove all the rows where it has Zero's as defined above. It can be of any combination.
Your help will be really appreciated.
Valid Rows
-------------
1010
0001
1000
I dont want to make any changes to the valid Rows....