Hello, I'm trying to build a query accessing Sage Business Vision database.
In the help file it says that NUMBER (the number of the invoice) is a 10 character String.
When I do some query in Pervasive SQL Data Manager, SALES_HISTORY_DETAIL.NUMBER returns data like this:
0000162330
However for a query like this:
Code:
SELECT "SALES_HISTORY_DETAIL"."NUMBER", "SALES_HISTORY_DETAIL"."CODE"
FROM "SALES_HISTORY_DETAIL"
WHERE "SALES_HISTORY_DETAIL"."NUMBER" = 0000162330
I don't get any results unless I change the 'where' clause to this:
WHERE "SALES_HISTORY_DETAIL"."NUMBER" LIKE '%162330'
All this variations fail
WHERE "SALES_HISTORY_DETAIL"."NUMBER" = '0000162330'
WHERE "SALES_HISTORY_DETAIL"."NUMBER" = '162330'
WHERE "SALES_HISTORY_DETAIL"."NUMBER" = 162330
Why can't I just use the '=' operator?
Thanks,
Eduardo