Alvin Chong
IS-IT--Management
I have 3 similar databases in the PSQL which is used for my ERP system.
First database = dbA, Second database dbB, Third database dbC
Mostly we use dbA as our main database to link to the ERP, dbB & dbC is a test database for the ERP system.
Recently, I exported all data from the dbA and import into dbB & dbC to do some testing.
I found something weird that I cannot get the full result in the dbB & dbC.
An example I run the SQL query in the PCC: Select * From PO_DATA_TABLE Where PO_NO = '12345'
dbA gets correct results. (5 records)
dbB gets nothing. (0 record)
dbC gets record but less. (2 records)
But once I change the SQL query to Select * From PO_DATA_TABLE Where LTrim(PO_NO) = '12345'
Now dbA & dbB & dbC can get the correct results.
Not only the table "PO_DATA_TABLE", so far I found 4 tables having this issue.
I told to my ERP System support about this but they cannot fix my problem, they just ask me to apply the hotfixes for the ERP system.
First database = dbA, Second database dbB, Third database dbC
Mostly we use dbA as our main database to link to the ERP, dbB & dbC is a test database for the ERP system.
Recently, I exported all data from the dbA and import into dbB & dbC to do some testing.
I found something weird that I cannot get the full result in the dbB & dbC.
An example I run the SQL query in the PCC: Select * From PO_DATA_TABLE Where PO_NO = '12345'
dbA gets correct results. (5 records)
dbB gets nothing. (0 record)
dbC gets record but less. (2 records)
But once I change the SQL query to Select * From PO_DATA_TABLE Where LTrim(PO_NO) = '12345'
Now dbA & dbB & dbC can get the correct results.
Not only the table "PO_DATA_TABLE", so far I found 4 tables having this issue.
I told to my ERP System support about this but they cannot fix my problem, they just ask me to apply the hotfixes for the ERP system.