473,388 Members | 1,340 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Potential regression with Oracle 11g in Select Sum

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
Oct 16 '09 #1
3 2816
debasisdas
8,127 Expert 4TB
what exactly is the error message ?
Oct 20 '09 #2
The query returns null with Oracle 11g, not in Oracle 10g and SQL Server.
Oct 20 '09 #3
OraMaster
135 100+
Hi
Please make sure table in both 10g and 11g are in sync wrt data.
Oct 26 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: susmita_ganguly | last post by:
Hi I am trying to upgrade from oracle 8i to oracle 9i on the same server ..I don't know much abt migration . Can anyone help me out. Thanks. Susmita
5
by: Madjid Nasiri | last post by:
Hi, I am basic in oracle. My Old programs write with Delphi and Databases: Access, Paradox, MySQL, Microsoft SQL. I write my code (SQL code) case-insensitivae, but now i need use oracle database....
11
by: Markus Breuer | last post by:
I have a question about oracle commit and transactions. Following scenario: Process A performs a single sql-INSERT into a table and commits the transaction. Then he informs process B (ipc) to...
4
by: Roger Redford | last post by:
Dear Experts, I'm attempting to marry a system to an Oracle 817 datbase. Oracle is my specialty, the back end mainly, so I don't know much about java or javascript. The system uses javascript...
8
by: Tavish Muldoon | last post by:
At a high level - what would be involved in switching from Oracle to DB2? Pretty vague, I know - but anyone have experience with this kind of migration? Pointers? Things to look for? Tmuld
8
by: Michael van der Veeke | last post by:
Hi All, Does anyone use any regression testing tools with MS Access? We have tried a few and none seem to work very well with a MS Access Front end and I need one. Can anyone provide any...
3
by: sql guy123 | last post by:
This is a real challenge. I hope someone is smart enough to know how to do this. I have a table TABLE1
0
by: Andreas Sheriff | last post by:
Has anyone ever attempted multiple regression within Oracle? Just curious... Thanks, Andreas
0
by: drfish | last post by:
Hi, I'm a complete novice when it comes to VB so need some help. I would like a macro that performs linear regression for different cell ranges each time it is run, depending on the number of...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.