Oracle ODBC funny queries

  • Thread starter Thread starter Rohan via AccessMonster.com
  • Start date Start date
R

Rohan via AccessMonster.com

I have two queries.

Here is the query that doesn't work:

SELECT commodity1.commodity, ExplorationCommodity.commodityID,
ExplorationCommodity.site_code
FROM SRA_SITE INNER JOIN (commodity1 INNER JOIN ExplorationCommodity ON
commodity1.commodityID = ExplorationCommodity.commodityID) ON SRA_SITE.
SITE_CODE = ExplorationCommodity.site_code
ORDER BY commodity1.commodity;

Here is the query that does work:

SELECT commodity1.commodity, ExplorationCommodity.commodityID,
ExplorationCommodity.site_code
FROM commodity1 INNER JOIN ExplorationCommodity ON commodity1.commodityID =
ExplorationCommodity.commodityID
ORDER BY commodity1.commodity;

There is an entry in SRA_SITE.SITE_CODE called "AMM"
and and entry in ExplorationCommodity.site_code called "amm"

It doesn't find the record in query 1, but does in query 2.

SRA_SITE is an Oracle ODBC table, ExplorationCommodity is an access table.

BOTH QUERIES WORK IF YOU IMPORT SRA_SITE.

Any clues ?

Rohan
 
Hi,


"maybe" Oracle server is set to differentiate lower and upper case... is
it?


Vanderghast, Access MVP
 
Hi,


Another possibility is that Oracle field is padded with blank (that may
occur if the data type is a fixed length character type, rather than a
variable characters length type).


Vanderghast, Access MVP

Michel Walsh said:
Hi,


"maybe" Oracle server is set to differentiate lower and upper case... is
it?


Vanderghast, Access MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top