General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Network:
Windows 2000 Server
>>>
>>>Interestingly, if you create a tag on LEFT(ID,4) in the TABB table, it works.
>>>
>>
>>It also works if you change WHERE NOT EMPTY(taba.field2) to WHERE taba.field2<>" ".
>>
>>Seems like the bug is with EMPTY()
>
>Hi Brad,
>
>Not exactly. The field2 itself is incorrect in result also, Null instead of blank.
That's true about the NULL's... that shouldn't be happening at all. But it's the EMPTY() function in the WHERE clause (or more correctly the NOT EMPTY()) that seems to be driving this not to work.
Doing a WHERE taba.field2<>" " is the same as doing a WHERE NOT EMPTY(taba.field2) yet one returns the correct result and the other doesn't.
I tried the same by changing field2 to a numeric field and date other types of fields and the same phenomenon happens. If you get rid of the NOT EMPTY() in the WHERE clause, everything works as expected.
Weird.
--Brad
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only