Archives of the TeradataForum
Message Posted: Wed, 10 Dec 2003 @ 15:20:52 GMT
Subj: | | Re: SQL Standard for the "%" wildcard on the LIKE predicate. |
|
From: | | Dieter Noeth |
Arunachalam, Sankar wrote:
I would think that when 'NEW YORK' is correctly equated to 'NEW YORK ' in a CHAR Column then '%YORK' should also be equated
to 'NEW YORK '... So I guess this can be considered as a valid bug. If ANSI SQL were to append blank while comparing CHAR strings that
should also apply to wild card comparisons. So my vote -- this is a BUG
According to ANSI SQL blanks are significant to the LIKE predicate, but not for comparison predicates (=, <>).
So if it's a bug, then it's a bug in SQL:1999 ;-)
Dieter
|