S
Serge
Hi everyone!
I have the table which has IP address column
(192.xxx.xxx.xxx) And I have a new blank column in the
same table titled "Gateway". I will need help to create
the query which will take IP address and replace the last
octet of IP address to .1 , so the results look like :
IP address Gateway
192.134.45.67 192.134.45.1
192.56.25.204 192.56.25.1
And copy that data later into corresponding row
of "gateway" column.
The problem is that last octet could have one, two or
three characters and you can't use here RIGHT, REPLACE is
also very tricky.
Does anyone have any ideas how to do it?
Any help will be greatly appreciated!
Million thanks!
Serge
I have the table which has IP address column
(192.xxx.xxx.xxx) And I have a new blank column in the
same table titled "Gateway". I will need help to create
the query which will take IP address and replace the last
octet of IP address to .1 , so the results look like :
IP address Gateway
192.134.45.67 192.134.45.1
192.56.25.204 192.56.25.1
And copy that data later into corresponding row
of "gateway" column.
The problem is that last octet could have one, two or
three characters and you can't use here RIGHT, REPLACE is
also very tricky.
Does anyone have any ideas how to do it?
Any help will be greatly appreciated!
Million thanks!
Serge