S
subs
wgt wgt range
100 1-500
2000 1000-5000
60000 30000-60000
250 1-500
i have a column called as wgt in one of my tables. There are thousands
of records under this column. Also i have an column called as wgt
range . This colmn is empty. Now i want to update this column with
data as seen above. i need a update query with a criteria which can
check the wgt in the wgt column and then update the wgt range column
accordingly. for example if the wgt is 100 then wgt range is 1-500
becuse 100 is between 1 and 500 and so on.
I need a query which can update all the rows at once . i tried in
design grid but it is not updatabale at once. Is there a SQL query.
Thanks for yr help
100 1-500
2000 1000-5000
60000 30000-60000
250 1-500
i have a column called as wgt in one of my tables. There are thousands
of records under this column. Also i have an column called as wgt
range . This colmn is empty. Now i want to update this column with
data as seen above. i need a update query with a criteria which can
check the wgt in the wgt column and then update the wgt range column
accordingly. for example if the wgt is 100 then wgt range is 1-500
becuse 100 is between 1 and 500 and so on.
I need a query which can update all the rows at once . i tried in
design grid but it is not updatabale at once. Is there a SQL query.
Thanks for yr help