Hi All,
I had a query related to sql select update replace command.
i have a table named clusters and it looks like this
name model characteristics
sample1.1 +123 parent
sample1.2 -456 clone
sample1.3 +122 clone
sample1.4 +12 parent
sample1.5 -14 parent
sample1.6 -12 clone
sample2.1 +45 parent
I want all my model values to be changed to +1 and -1
whichever model number are postive have to be +1 and whichever model number are negative have to be -1.
The table should look like this
clusters
name model characteristics
sample1.1 +1 parent
sample1.2 -1 clone
sample1.3 +1 clone
sample1.4 +1 parent
sample1.5 -1 parent
sample1.6 -1 clone
sample2.1 +1 parent
Is it possible using a select replace and update statement?
Please do help
Thanks !!
Sonia
