HELP "Select SUM(x), SUM(y)" different between 8.1.6 and 8.1.7.2 ?

The following query runs fine under 8.1.6 but returns bad result under 8.1.7.2 :
SELECT SUM(NBANOMALIE4), SUM(NBANOMALIE2)
FROM
(SELECT COUNT(*) "NBANOMALIE2" FROM CPN A, ANOCPN B WHERE A.CODENS= '128' AND B.CODANO='2' AND A.NUMFOR = B.NUMFOR ) ,
(SELECT COUNT(*) "NBANOMALIE4" FROM CPN A, ANOCPN B WHERE A.CODENS= '128' AND B.CODANO='4' AND A.NUMFOR = B.NUMFOR )
GROUP BY NBANOMALIE2, NBANOMALIE4;
Result given under 8.1.6 is
SUM(NBANOMALIE4) SUM(NBANOMALIE2)
1 0 (correct)
Result given under 8.1.7.2 is
0 0 (wrong)
if query is changed to "SELECT SUM(NBANOMALIE2), SUM(NBANOMALIE4) ..."
Result given under 8.1.7.2 is
1 1 (wrong too !)
actually the result given for ALL is the result of the last "SUM()" in the select ...
Is it a bug ? if so any patch ? Is there a workaround ?
Thanks for any help
Charlie [email protected]

a solution was to use decode()
here is a workaround :
SELECT DECODE(B.CODANO,'2',1,0) NBANOMALIE2, DECODE(B.CODANO,'4',1,0) NBANOMALIE4
FROM CPN A, ANOCPN B
WHERE A.CODENS= '128' AND B.CODANO IN ('2','4') AND A.NUMFOR = B.NUMFOR;
I had it from http://www.orafaq.com/. ...
Charlie [email protected]

Similar Messages

  • What is the different between payment methods Wire and EFT

    Hi All
    can anybody tell me What is the different between payment methods Wire and EFT ?
    Regards ;

    WIRE:
    Wire is transfer of amount due directly to the supplier's bank it is an electronic transfer of funds
    This mode of payment is used for international suppliers.
    It can be paid in foreign currency or USD.
    Wire payments are same day payments.
    EFT:
    EFT ensures funds transfer from one bank account to another using electronic links.
    Can be used to make payments into domestic banks (within US) in USD only.
    It is faster than check payments.
    Hope this helps.

  • Is any different between ECC 5.0 and ECC 6.0 for Excel export?

    Dear all,
    As you know, most standard SAP report allow Excel export. I just wonder is any different between ECC 5.0 and ECC 6.0 for excel report in standard SAP reports?
    In ECC 5.0, Reports in profit center accounting, LIS, or PA, etc. has their own different way to export to excel and is any improvement in ECC 6.0? I Thanks.

    In ECC 5.0, a lot of reports don't have Excel export function instead user has to go to system -> List -> Save -> Local file -> spreadsheet.
    I just wonder is any improvement in ECC 6.0? just like LIS report, user can select export -> Transfer XXL to either pivot table or just plain excel but the function only exist in certain reports in some modules and not all.
    Thanks again.

  • Re: What is the different between the NB550D-109 and the NB550D-10G?

    Hello Guys . I need some help about the NB550D. What is the different between the NB550D-109 and the NB550D-10G?? Is just the colour?

    I've checked local and internet shops - strange thing - now, a month after they've started to sell NB550D, in my country (Poland) you can buy only 10J model (with C30) - only green! But the price changed from 1299 to 1199 :)
    And 10G model (blue with C50) disappeared - sold out!!!???

  • What is the different between Oracle Process Manuf and Oracle Discrete Manufatur in oracle?

    Dear What is the different between Oracle Process Manufacturing and Oracle Descret Manufacturing in Oracle?

    Hi Elad,
       Depending on the requirement and the availability we go with implementing a particular database.
    For xi point of view there is no difference between oracle and SQL database. However you need to intall the drivers of SQL.
    Even there is no difference in the communication channel configuration.
    Reward points if found helpful.
    Thanks & Regards,
    Bharath.

  • Exchange rate is different between records in OB08 and records in document.

    Hi Gurus,
    The exchange rate is different between records in OB08 and records in calculated amount in line item. How does it happen? Not all of the documents in the same period has this problem.
    For example, a document A created by FB05 on Jun 30 2010.
    In OB08, the exchange rate is 6.80000. This rate was the same in the header of document A.
    In the line item of doc A, I calculated the amount for line itme 1 and 2. Line itme 1 shows the exchange rate is 7.90000. Line item 2 shows the exchange rate is 16.0000. ( The exchange rate is not that exactly an interger. I put a similar exchange rate as an example.)
    Could you please throw some light on these? Why some documents are okay but for some, the exchange rate is so different?
    I just found that the exchange rate of some of the document line item calculated is from another currency. It shows in the line item (in question) button "More Data". Shall I know how the exchange rate was got from another currency exchange rate?
    Thank you.
    Emma
    Edited by: qun yang on Aug 2, 2010 10:49 AM

    Issue solved by below solution:
    Existing:
          append lines of vit_final to s_s_if-maxsize to e_t_data.
          delete vit_final to s_s_if-maxsize.
        else.
          append lines of vit_final to s_s_if-maxsize to e_t_data.
          delete vit_final to s_s_if-maxsize.
    New:
          append lines of vit_final to e_t_data.
          delete vit_final to s_s_if-maxsize.
        else.
          append lines of vit_final to e_t_data.
          delete vit_final to s_s_if-maxsize.

  • Different Between KT4V ver1.0 and KT4V v10A

    Hi guys, when i just bought a new MSI KT4V from a shop, it was version 1.0, but 3 month later i send for warrantty claim, they return the board to me (I think they  replace the board, but i dun think it was a new board, it was a used board), but it was KT4V Ver10A, i bought this board at Malaysia, do anybody know about it ?? Can let me know what is the different between Version 1.0 and 10A ????  ?(
    In my mind, i think maybe is KT4V Ver 2.0  :D
    I got send mail to MSI official site, but sadly it auto reply by the machine, do anybody know how to send a mail to technical support which will reply and give a solution for you problem ???

    The cpu temp looks to be slightly high for an idle temp.  Could be caused by too much thermal grease or poor airflow through the case, even by high ambient temps in the room where the system is located.  These temps are normally measured in centigrade and should not exceed 43 degrees to 45 degrees at idle.  Yours appear to be about 50 degrees.

  • Different between work order closed and completed

    HI experts
    I would like to know what is different between closed work order and completed on SAP PM Module.
    regards
    nasser

    See this conversation:Completed is technical comptete (TECO) - the technician has done his/her work, closed is settled and done also from an accounting perspective (settlement)
    PM Work Order TECO and CLSD
    http://scn.sap.com/thread/3158261

  • What different between ADF Rich Portlet and Trinidad HTML Portlet?

    Hi all,
    I've some question about adding portlet to portal pages
    What different between ADF Rich Portlet and Trinidaf HTML Portlet?
    And benifit of each?
    Regards

    Hi all,
    I've some question about adding portlet to portal pages
    What different between ADF Rich Portlet and Trinidaf HTML Portlet?
    And benifit of each?
    Regards

  • Different between cisco NAC agent and cisco Clean Access Agent

    Hi all,
    if anyone has idea about different between cisco NAC agent and cisco Clean Access Agent, please share your ideas.
    thank you

    In 4.6, the agent was overhauled and is now called the NAC agent.  Previous versions were referred to as the Clean Access Agent.  So pretty much, the 4.5 agent and 4.1.3.2 agents are Clean Access agents, and the 4.6.x and 4.7.x agents are called NAC agents.
    Some of the changes made were moving a lot of the agent configuration to an XML file, redesigning the GUI, adding a service portion (so that the stub agent is no longer required), and better agent logging.

  • What is the different between MacBookAir MD711ID/A and MD711ZA/A?

    What is the different between MacBookAir MD711ID/A and MD711ZA/A? Is it only the OS? Or is there any other different specification? Thank you.

    No, there isn't. There isn't a difference in the OS either; if they shipped with different OS versions, it's because of the passage of time and not them being from different countries.
    (103730)

  • Whats is the different between iphone sim free and international(unlocked)??

    Greetings sir,
    whats is the different between iPhone sim free and international (unlocked)?? as i want to buy anew one from USA, but i didn't found it international, so can i buy it (SIM free) and will it work in Egypt?

    Apple has not announced when or if it will be offering unlocked iPhone 6 in the U.S.

  • Different between Independent Multiple Sample, and Dependent

    Hi Craig and QM gurus,
    What is the different between Independent Multiple Sample, and Dependent Multiple Sample?
    I read the SAP library and am still confusing.
    thanks

    hi
    In very simple terms...
    In case when you are using a sampling scheme .....You will find the acceptence Number & rejection Number(C1 &D1)
    When after sampling & maintaining C1 & D1 still you can not reach to a conclustion then you can also maintain next level C2 & D2
    Dependent multiple samepling : C2 & d2 are depend upon C1 & D1.
    Ex:
    C1: 1   & D1:3
    you have found 2 sample rejecet..you can not reach to conclution then maintain C2 & D2 for next level of sampling.
    Independent:when first level is not depend upon second level.
    I hope this is clear.
    Regards
    Sujit

  • Why parition table is different between S10 3/05 and S10 6/06?

    I want to set up RAID 1 (mirroring) using the Solaris Volume Manager (SVM) on my Solaris 10 6/06 x86 machine. I have 2 identical Seagate 40GB HDD's (model ST340016A).
    The partition table on the primary disk was already defined by Solaris 10 3/05 OS before I reinstalled the OS (Solaris 10 6/06). The partition table of the primary disk is as follows:
    leopard $ prtvtoc /dev/rdsk/c0d0s2
    * /dev/rdsk/c0d0s2 partition map
    * Dimensions:
    * 512 bytes/sector
    * 63 sectors/track
    * 32 tracks/cylinder
    * 2016 sectors/cylinder
    * 38771 cylinders
    * 38769 accessible cylinders
    * Flags:
    * 1: unmountable
    * 10: read-only
    * Unallocated space:
    * First Sector Last
    * Sector Count Sector
    * 20984544 57173760 78158303
    * First Sector Last
    * Partition Tag Flags Sector Count Sector Mount Directory
    0 2 00 6048 8390592 8396639 /
    1 3 01 8396640 2098656 10495295
    2 5 00 0 78158304 78158303
    3 7 00 10495296 2098656 12593951 /var
    4 0 00 12593952 4195296 16789247 /opt
    5 8 00 16789248 4195296 20984543 /home
    8 1 01 0 2016 2015
    9 9 01 2016 4032 6047
    It has 38771 cyclinders.
    Now I want to create exactly the same partition table on the secondary disk, but it refuses to match the same partition table to the primary disk. It stills gives 40GB, but the number of cycliners is not the same. Below is the partition table of the secondary disk.
    leopard $ prtvtoc /dev/rdsk/c0d1s2
    * /dev/rdsk/c0d1s2 partition map
    * Dimensions:
    * 512 bytes/sector
    * 63 sectors/track
    * 255 tracks/cylinder
    * 16065 sectors/cylinder
    * 4864 cylinders
    * 4862 accessible cylinders
    * Flags:
    * 1: unmountable
    * 10: read-only
    * Unallocated space:
    * First Sector Last
    * Sector Count Sector
    * 48195 78059835 78108029
    * First Sector Last
    * Partition Tag Flags Sector Count Sector Mount Directory
    2 5 01 0 78108030 78108029
    8 1 01 0 16065 16064
    9 9 00 16065 32130 48194
    leopard $
    It has 4864 cyclinders not 38771. Why?
    You can see the disk dimension is different between these 2 disks. I tried to redefine it to match the primary disk, but it keeps coming back to the different table.
    Do you know why the partition table defined by Solaris 10 6/06 differs to what Solaris 10 3/05 had defined? How do I force the parition table to match with the primary disk? Both disks must match so that SVM would work.
    Can anyone shed any light as to why it happens? Thank you for your help.
    Trevor

    I want to set up RAID 1 (mirroring) using the Solaris Volume Manager (SVM) on my Solaris 10 6/06 x86 machine. I have 2 identical Seagate 40GB HDD's (model ST340016A).
    The partition table on the primary disk was already defined by Solaris 10 3/05 OS before I reinstalled the OS (Solaris 10 6/06). The partition table of the primary disk is as follows:
    leopard $ prtvtoc /dev/rdsk/c0d0s2
    * /dev/rdsk/c0d0s2 partition map
    * Dimensions:
    * 512 bytes/sector
    * 63 sectors/track
    * 32 tracks/cylinder
    * 2016 sectors/cylinder
    * 38771 cylinders
    * 38769 accessible cylinders
    * Flags:
    * 1: unmountable
    * 10: read-only
    * Unallocated space:
    * First Sector Last
    * Sector Count Sector
    * 20984544 57173760 78158303
    * First Sector Last
    * Partition Tag Flags Sector Count Sector Mount Directory
    0 2 00 6048 8390592 8396639 /
    1 3 01 8396640 2098656 10495295
    2 5 00 0 78158304 78158303
    3 7 00 10495296 2098656 12593951 /var
    4 0 00 12593952 4195296 16789247 /opt
    5 8 00 16789248 4195296 20984543 /home
    8 1 01 0 2016 2015
    9 9 01 2016 4032 6047
    It has 38771 cyclinders.
    Now I want to create exactly the same partition table on the secondary disk, but it refuses to match the same partition table to the primary disk. It stills gives 40GB, but the number of cycliners is not the same. Below is the partition table of the secondary disk.
    leopard $ prtvtoc /dev/rdsk/c0d1s2
    * /dev/rdsk/c0d1s2 partition map
    * Dimensions:
    * 512 bytes/sector
    * 63 sectors/track
    * 255 tracks/cylinder
    * 16065 sectors/cylinder
    * 4864 cylinders
    * 4862 accessible cylinders
    * Flags:
    * 1: unmountable
    * 10: read-only
    * Unallocated space:
    * First Sector Last
    * Sector Count Sector
    * 48195 78059835 78108029
    * First Sector Last
    * Partition Tag Flags Sector Count Sector Mount Directory
    2 5 01 0 78108030 78108029
    8 1 01 0 16065 16064
    9 9 00 16065 32130 48194
    leopard $
    It has 4864 cyclinders not 38771. Why?
    You can see the disk dimension is different between these 2 disks. I tried to redefine it to match the primary disk, but it keeps coming back to the different table.
    Do you know why the partition table defined by Solaris 10 6/06 differs to what Solaris 10 3/05 had defined? How do I force the parition table to match with the primary disk? Both disks must match so that SVM would work.
    Can anyone shed any light as to why it happens? Thank you for your help.
    Trevor

  • What is the different between Logical complex join and Physical join?

    hi,
    Do somebody know what is the function different between logical complex join in BMM layer and physical join in physical layer?
    Thanks.

    Thank you very much1
    I understand their differentiation:
    In the BMM Complex join (intelligent), means OBI picks the best way from possibly many different ways to join using physical join. FK join forces the same join always, which limits flexibility.

Maybe you are looking for

  • How do I upgrade to a new OS and which ones are available to me?

    I have a MacBook Model: A1181 Identifier 4,1. OS Version: 10.5.8 My iTunes wont update anymore and I have an iPhone 5 that needs the newest, or at least newer version than I have, to sync music. Is my only option buying a new OS? If so what OS can i

  • Files I upload from one device are not visible on another device

    I have multiple devices signed into the same Adobe account to share and upload files. I am having a problem with uploading files, and them not being visible on my other devices. I have tried deleting and re-uploading them, logging out and back in. No

  • FX5600, No DVI (ACER AL732)

    With detonator 4x.xx drivers it was possible to use both outputs (Analog and DVI).  Both connections of my LCD were connected to the video card and working (also during post of the PC). Just one problem: My LCD is autodetecting and selected analog or

  • Inport flash in DW 8

    Hey, After a update for the border in IE for flash movie I cant see my flash movie enymore! I maked the update "Apply Active Content Update" Now when I import flash movie in my htm page, I can't see the movie enymore! I have dreamweaver 8.0.2 and fla

  • I need help making a graph!

    Example: density on the x axis and Specific heat on the y axis.