Pass-through Query Doesn't Return Expected Results



Hi all,

I'm running the following through a pass-through query (Microsoft
Access 2003) against an Oracle 9i
server. No results are returned. I've configured a DSN which uses
the
Oracle 9.02 driver.

If I use another tool outside of Access, in this case AQT - Advanced
Query
Tool, the expected results are returned. AQT is configured to use the
same
DSN chosen for the pass-through query.

Has anyone observed similar behavior? The query is configured to
return records, the ODBC Timeout is set to indefinite, and I've
confirmed the queries are running under the same user account (Select
UID from dual).


Here's the query in question. It's rather simplistic. Its executing
over
table containing a few million rows of data. Also in AQT, the query
completes in about 2 minutes.

Select to_date(CREAT_DT_TM, 'yyyy/mm/dd') as "Reporting Date",
Count(Refer_Num) as "Scenarios",
Sum(Case When App_Stat_Cde = 'AC'
And (Lien_Pos_Cde = '1' OR Lien_Pos_Cde IS Null) Then 1
Else 0
End) as "Matches",
Sum(Case When Lien_Pos_Cde = '1' Then 1
Else 0
End) as "Total LPEs",
Sum(Case When App_Stat_Cde = 'AC' And (Lien_Pos_Cde = '1'
OR Lien_Pos_Cde IS Null) Then 1 Else 0 End)
/ Count(Refer_Num) as "Pct Matches",
Sum(Case When Lien_Pos_Cde = '1' Then 1 Else 0 End)
/ Count(Refer_Num) as "Pct LPEs"
from mflrpp.ehouse_pal
where creat_dt_tm between
to_date(add_months(last_day(sysdate),-7)+1,'yyyy-mm-dd')
and to_date(sysdate,'yyyy-mm-dd')
Group By to_date(Creat_dt_tm, 'yyyy/mm/dd')
Order By to_date(Creat_dt_tm, 'yyyy/mm/dd') Desc
Was this post helpful to

.



Relevant Pages

  • Re: Pass-through Query Doesnt Return Expected Results
    ... Oracle 9.02 driver. ... DSN chosen for the pass-through query. ...
    (comp.databases.oracle.misc)
  • Re: Views - performance
    ... when u use stored object views oracle has to read the data dictionary ... this includes lots of steps for execution ... semantics of the query and fires it ... you'll possibly have any idea is to use explain plan to provide a base ...
    (comp.databases.oracle.server)
  • RE: DBI-1.48 bind_param_inout produces ORA-01461 colliding with a CLOB
    ... can pass strings as varchar's and have them inserted ... In theory I could write something to query the ... CLOB w/in Oracle is probably what is killing me... ...
    (perl.dbi.users)
  • Re: Equilevant of Oracle for optional records
    ... and a normalized t2 could be more useful, to build the query, and once this ... the Iqaluit Trauma: ... Oracle handles this data structure perfectly but I suspect it might be ...
    (microsoft.public.access.queries)
  • Re: Equilevant of Oracle for optional records
    ... this query is done, then flatten the result? ... example, the Iqaluit Trauma: ... Oracle handles this data structure perfectly but I suspect it might be ...
    (microsoft.public.access.queries)