|
|
Archives of the TeradataForum
Message Posted: Tue, 06 Sep 2011 @ 14:02:14 GMT
Subj: | | Re: Need performance help with update |
|
From: | | Geoffrey Rommel |
Yes, the way in which the IP addresses are stored is important. If they're character strings, BETWEEN may not give the results you want. For
instance:
'192.168.10.10' < '192.168.10.20' < '192.168.10.30' -- In this case, the middle value is between the other two, whether numeric or
character.
'192.168.10.1' < '192.168.10.45' < '192.168.10.9' -- In this case, the middle value is NOT between the other two numerically but is between
them if all three are character strings.
| |