Connecting Tech Pros Worldwide Forums | Help | Site Map

Potential regression with Oracle 11g in Select Sum

Newbie
 
Join Date: Oct 2009
Posts: 2
#1: Oct 16 '09
Hi folks,

I need your expertise with Oracle. My application is using both SQL and Oracle. When testing the new release of Oracle 11g, one test case is failing and the following code is being regressed in ORA 11g from ORA 10g.

Does anybody if that's a known issue?

The code is
Expand|Select|Wrap|Line Numbers
  1. select  sum(DEBITMST) from (SELECT SUM(A.DEBITMST) AS DEBITMST,
  2. SUM(A.CREDITMST) AS CREDITMST,
  3. SUM(A.DEBITOPRMST) AS DEBITOPRMST,
  4. SUM(A.CREDITOPRMST) AS CREDITOPRMST,
  5. SUM(A.DEBITTAXMST) AS DEBITTAXMST,
  6. SUM(A.CREDITTAXMST) AS CREDITTAXMST,
  7. SUM(A.DEBITMSTSECOND) AS DEBITMSTSECOND,
  8. SUM(A.CREDITMSTSECOND) AS CREDITMSTSECOND,
  9. SUM(A.DEBITOPRMSTSECOND) AS DEBITOPRMSTSECOND,
  10. SUM(A.CREDITOPRMSTSECOND) AS CREDITOPRMSTSECOND,
  11. SUM(A.DEBITTAXMSTSECOND) AS DEBITTAXMSTSECOND,
  12. SUM(A.CREDITTAXMSTSECOND) AS CREDITTAXMSTSECOND,
  13. SUM(A.QTY) AS QTY,
  14. SUBSTR(NLS_LOWER(A.ACCOUNTNUM),1,41) AS ACCOUNTNUM,
  15. SUBSTR(NLS_LOWER(A.DIMENSION),1,21) AS DIMENSION,
  16. SUBSTR(NLS_LOWER(A.DIMENSION2_),1,21) AS DIMENSION2_,
  17. SUBSTR(NLS_LOWER(A.DIMENSION3_),1,21) AS DIMENSION3_,
  18. A.TRANSDATE AS TRANSDATE,
  19. A.PERIODCODE AS PERIODCODE,
  20. A.SYSTEMGENERATEDULTIMO AS SYSTEMGENERATEDULTIMO,
  21. SUBSTR(NLS_LOWER(A.DATAAREAID),1,7) AS DATAAREAID,
  22. 1010 AS RECID 
  23. FROM dbo.LEDGERBALANCESDIMTRANS A 
  24. GROUP BY 
  25. SUBSTR(NLS_LOWER(A.ACCOUNTNUM),1,41),
  26. SUBSTR(NLS_LOWER(A.DIMENSION),1,21),
  27. SUBSTR(NLS_LOWER(A.DIMENSION2_),1,21),
  28. SUBSTR(NLS_LOWER(A.DIMENSION3_),1,21),
  29. A.TRANSDATE,
  30. A.PERIODCODE,
  31. A.SYSTEMGENERATEDULTIMO,
  32. SUBSTR(NLS_LOWER(A.DATAAREAID),1,7));

Regards,
Bertrand

debasisdas's Avatar
Moderator
 
Join Date: Dec 2006
Location: Bangalore ,India
Posts: 7,511
#2: Oct 20 '09

re: Potential regression with Oracle 11g in Select Sum


what exactly is the error message ?
Newbie
 
Join Date: Oct 2009
Posts: 2
#3: Oct 20 '09

re: Potential regression with Oracle 11g in Select Sum


The query returns null with Oracle 11g, not in Oracle 10g and SQL Server.
OraMaster's Avatar
Member
 
Join Date: Aug 2009
Location: Pune, India
Posts: 76
#4: 4 Weeks Ago

re: Potential regression with Oracle 11g in Select Sum


Hi
Please make sure table in both 10g and 11g are in sync wrt data.
Reply

Tags
oracle 11g