Report of the Group of left does not sort descending

Hello seniors...

I have the following query which produces the result as you wish below at the SQL level; I aim to lines to be copied in descending order...
SQL> SELECT Z.ACATG_TYPE, Y.EXPN_CATG, z.ACATG_DESC, y.expn_code, y.expn_name,
  2  DECODE(Z.ACATG_TYPE,'I', x.closing) Income,
  3  DECODE(Z.ACATG_TYPE,'E', x.closing) Expense
  4  FROM(
  5  SELECT PSN_PARTY, expn_name, SUM(nvl(NETT,0)) nett,  SUM(nvl(DEBIT,0)) debit,  SUM(nvl(CREDIT,0
)) credit, 
  6  SUM((nvl(NETT,0)+nvl(DEBIT,0)-nvl(CREDIT,0))) CLOSING
  7  FROM (
  8  SELECT PSN_PARTY, 0 nett, SUM(nvl(debit,0)) DEBIT, SUM(nvl(CREDIT,0)) CREDIT
  9  FROM(
 10   SELECT PSN_TXN_DATE,PSN_PARTY, nvl(DEBIT,0) debit, nvl(CREDIT,0) credit
 11   FROM 
 12       (
.
.
.
 94  where PSN_PARTY = expn_code
 95  GROUP BY PSN_PARTY, expn_name) x, expense_master y, Accounts_category z
 96  where x.psn_party = y.expn_code
 97  and   y.expn_catg = z.acatg_code
 98  and   z.acatg_type in ('I','E')
 99  ORDER BY Z.ACATG_TYPE DESC, Y.EXPN_CATG,y.expn_code;

ACA EXPN_C ACATG_DESC                     EXPN_C EXPN_NAME                             INCOME       EXPENSE
--- ------ ------------------------------ ------ ------------------------------ ------------- ------
I   90     Income                         AC2000 Sale                                1333.000
E   10     Expense                        AC0003 ELECTRICIRTY BILL                                   30.000
E   10     Expense                        AC0005 TELEPHONE BILL                                      16.000
E   10     Expense                        AC0007 TEA & SNACKS                                        17.000
E   10     Expense                        AC0009 REPAIRS & MAINTENANCE                               15.000
E   10     Expense                        AC0010 MOBILE BILL                                         45.000
E   10     Expense                        AC0011 REFUND                                             220.000
E   10     Expense                        AC0019 OFFICE EXPENCE                                      15.000
E   40     Staff Salaries                 AC0006 STAFF SLALARY                                      250.000

9 rows selected.
But when I've made use of the query above in my report with an Option of left group, I understand not sorted in descending order.
With a tabular report, it sorts correctly as indicated above.

Schot screen for a better idea of my report is attached for reference.

[http://i995.photobucket.com/albums/af71/rhnshk/INCEXP.jpg |-overview of the report]
[http://i995.photobucket.com/albums/af71/rhnshk/INCEXP1.jpg |] ReportWizard-DataModel]
[http://i995.photobucket.com/albums/af71/rhnshk/INCEXP2.jpg |] ReportWizard-groups]
[http://i995.photobucket.com/albums/af71/rhnshk/INCEXP3.jpg |] ReportWizard-fields]
[http://i995.photobucket.com/albums/af71/rhnshk/INCEXP4.jpg |] ReportWizard-totals]

I want the lines with acatg_type = 'I' to be displayed first.

Sorry for fixing is not SQL full, but no problems, or even not at all necessary, I can do the same.
Given that this is a long online created SQL view. thought that the solution might come out showing as much a part only.

I use report 6i to 10g.

Please help me.

Hello

Verify that the order of the fields in the "data model", in the respective application group ACATG_TYPE column should be first by EXPN_CATG, then expn_code.
Also check the order of the breaking of all columns.

I hope this helps.

Best regards

Arif Khadas

Tags: Oracle Development

Similar Questions

  • Having hard time you sign in to one account on my computer. "The group policy service does not have log on." Access denied. "

    Trying to connect to one of the accounts on my computer and the message telling me "the group policy service does not have the journal on.»  Access denied. "  Can someone help me with this?

    Hello

    1. is the computer connected to a network domain?

    2 are you facing this problem into account administrator? Do you have other administrator accounts enabled in the computer?

    3 did you changes to the computer before the show?

     
     
    Method 1:

    Check if you are able to start the computer in safe mode.
     
    Step 1: Safe Mode

    Start your computer in safe mode and check the number.

    To start your computer in safe mode

    http://Windows.Microsoft.com/en-us/Windows-Vista/start-your-computer-in-safe-mode

     
    If you are unable to boot into safe mode, please let us know.

    Step 2:

    You run the system restore in Windows recovery environment?

    If this isn't the case, I would say you can do a system restore to the Windows recovery environment. Follow the steps in the section provided.

    http://support.Microsoft.com/kb/940765/en-us


     
    I hope this helps!
  • How can I correct a problem accessing my firewall settings because the Group Policy client does not connect to windows?

    I have tried everything recently adjust the settings of the firewall from my window and a box appears saying that after an unidentified error, I can't access my firewall. After some research, I discovered that it was because my client group policy server does not connect and a small box appears saying that whenever I connect to my laptop. It is not effect my use of the internet at all, so I've never bothered to see what that meant until now I need to access my firewall. I tried to adjust the settings in group policy, but everything is gray and I can't change anything. I use an admin account so I don't know why I can't set the parameters. I'm completely stuck and I don't know that much about computers. Is there anything else I can try? I also tried a system restore, but it lasts for a long time and I can return only 5 days. Thank you

    Hi Sheldon,

    Are you connected or connected to a work network or domain? If so, this could be a policy governed by your network administrator, and you will not be able to change it.
    You might try to tell scientists on TechNet on your question to see if they have a better answer for you:
  • Black screen, high regular of underscore on the left does not start after reflashing the BIOS F.38 on HP2000-363NR

    HP2000 363NR, recently tried flashing the BIOS F.38 (here: http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=ob-116227-1&cc=us&dlc=&lc=en&o... ) to solve a problem of overheating.

    Well, it was a mistake.

    Now it does not start at all.

    Fans spinning upwards. Hard disk rotates.

    By pressing ESC, F1, F2, F9, F10 and F11 at startup to give appropriate (fast!) messages but then go to the same place:

    Black screen with flashing underscore in the top left. Leave it to this screen has no effect.

    Never see no text except the quick messages in the lower left (or "Press the ESC key for the system menu" down left based on nothing).

    Out and the relocation of memory does not work. Boot with a DIMM module does not work. Now hold power for one minute while the battery and plug on does not work.

    Battery is fully charged.

    OS is Windows 7 64 bit Home Premium, came with the laptop.

    Is it possible to return this BIOS?

    -Me

    Thanks to Xraytim in the post below, short-circuit the battery CMOS me returned to the previous BIOS. Need to remove card system as a whole to achieve this * beep * connector, but 34 screws later (34 = some # between 15 and 50), BIOS is back, problem solved.

    Thanks for the forum!

    -Tim

    http://h30434.www3.HP.com/T5/notebook-lockups-freezes-hangs/DV9858ca-won-t-boot-after-BIOS-update-won-t-power-with-AC/TD-p/555547

  • Virtual router does not work-«the group or resource is not in the appropriate State to make the request in question»

    I installed virtual router manager v1.0 but his does not work. When I leave router virtual by connection to the local network from my laptop, its shows an error. It is «the group or resource is not in the appropriate State to make the request in question» Please give me the solution of this problem. I want to start the virtual router and use the internet connection with other devices.

    I installed virtual router manager v1.0 but his does not work. When I leave router virtual by connection to the local network from my laptop, its shows an error. It is «the group or resource is not in the appropriate State to make the request in question» Please give me the solution of this problem. I want to start the virtual router and use the internet connection with other devices.

    Thank you so much for viewers. Virtual router works properly. I use internet for my laptop for my other devices.

  • When I import my .wav and my .m2V files still accepts the .wav file but does not load the .m2V file.  I created movie DVD 5 discs - still accepted the .wav and for the four remaining groups .m2V files and created 4 DVD discs for

    When I import my .wav and my .m2V files still accepts the .wav file but does not load the .m2V file. I created movie DVD 5 discs - still accepted the .wav and for the four remaining groups .m2V files and created 4 DVD discs for these files. What can I do to be free from this error?

    OSstatus = error-37

    Note that this a Mac operating system error.

    http://forums.CreativeCOW.NET/thread/145/865447

    Error when importing the file: slash or other character in file name

    http://forums.Adobe.com/message/3729601

    The build error: slash or other character in file name

    http://forums.CreativeCOW.NET/thread/145/868994

    The build error: complete startup disk

  • The onDeactivate event handler does not work in InDesign CC. Why?

    Hi guys.

    I'm working on a script in Javascript for InDesign CC.

    The big problem is that the onDeactivate event handler does not work.

    Here is an example that works in InDesign CSx, but not in InDesign CC:

    #target indesign
    var w = new Window ("dialog", "Test onDeactivate");
    var et_1 = w.add("edittext", [undefined, undefined, 300, 30], "Lorem ipsum");
    var et_2 = w.add("edittext", [undefined, undefined, 300, 30], "Dolor sit amet");
    var st = w.add("statictext", [undefined, undefined, 300, 30], "CONSOLE:\r\r", {multiline: true});
    et_1.onDeactivate = et_2.onDeactivate = function(){
         st.text = "CONSOLE: I left the field with this text:\r\t«" + this.text +"»"; }
    var b_ok = w.add("button", undefined, "OK");
    w.show();
    

    The script displays a dialog with text edit fields window 2: when a field loses focus (by clicking on the other), the "CONSOLE" shows the text of the old domain.

    Adobe, please, solve this problem as soon as possible.

    Thank you.

    Giorgio

    This is a bug, and it has been reported. Please report it to yourself, more the better reports. It's no good Adobe invite you in this forum to fix something.

    Peter

  • 280 G1 Micro Tower HP: Chipset driver needed for HP 280 G1 Micro tour Win 7 32 Bit Driver on the HP Sup site does not work

    Driver chipset on the HP support site does not load correctly.  All other drivers will charge properly.    Can someone point me to a chipset driver that is installed correctly?

    Thank you!

    Hello:

    Try the one directly from Intel...

    A 2nd on the left side of the page is the automatic installation file.

    https://Downloadcenter.Intel.com/download/20775/Intel-chipset-device-software-INF-Update-utility-

  • The button new tab does not appear. How can I activate it...?

    Just updated to the 6.0.2 o Firefox version and found that the new tab button does not appear... Please advise...

    The morphs of button tab depending on where you place it. In the tab bar, it is a large Plus sign ('+'). in an another toolbar, this is a black silhouette tab file with a white sign. If you have tabs on the top you have to be careful where you place - try the far right of the tab bar, or if you have a button close the simple tab on the far right, you can place the new tab button just to the left of the button to close the tab.

    To learn more about the changes, toolbars, including how to put them back to see items #1-10,

    You can make Firefox 6.0.2 look to Firefox 3.6. *, see numbered items 1-10 of the next topic difficulty Firefox 4.0 UI toolbar, problems (make Firefox 4.0 to 8.0, resemble 3.6). If you make changes, you must be aware of what has changed and what it takes to use changed or missing features.

    Please mark "resolved" a response that will better help others with a similar problem - hope it was her.

  • I installed a new router (Netgear N300) wireless and my laptop is the only computer that does not connect to the internet.

    Connected to the new router, but locally only.

    Currently, I installed a new router (Netgear N300) wireless and my laptop is the only computer that does not connect to the internet. The small icon to the left of my screen says only: ACCESS: LOCAL ONLY.
    BASICALLY,.

    I have Windows Vista Home Premium, notebook Compaq (Presario CQ60 to be exact)

    I can connect if I use a cable, but its disadvantages.

    I can connect wirelessly with my PC and Ipad. and Internet access.

    I TRIED:
    Various patches microsoft such as resetting TCP, safe mode with network, reset the router. »

    Thank you in advance and we hope you can answer this soon!

    I use an Atheros AR5007 802. 11 b / g WiFi Adapter(Compaq laptop) for the moment so this is useful. Thanks again!
    Someone suggested that I update my wireless driver. I am open to this idea, if anyone can find a safe and legal site with the download.

    Hi Bryyaan11,

    You can check out the link to HP support and try to download the drivers for your wireless card updated:

    Support HP & drivers

    For more information, you can also consult the following article:

    Updated a hardware driver that is not working properly

    You can also check the following items and try the steps:

    Windows wireless and wired network connection problems

    Solve problems, find wireless networks

    Hope this information is useful.

  • HP M4555, mailbox 3 bins stapling (CE736A) - does not sort the paper during printing of z/os.

    Hello

    Shortly:

    Printing from z/os on HP MFP with stapling Mailobx joint - does not sort the paper. All the paper goes to an output tray, instead of outputb different locations, depending on the configuration of the printer settings.

    With more details:

    1 device (HP LaserJet Enterprise M4555fskm MFP printers):

    2 mailbox HP stapling 3 bins of 900 sheets (CE736A)

    http://WWW8.HP.com/h20195/v2/GetPDF.aspx/4AA3-2888EEE.PDF

    Our Organization has Mainframe, where the documents are printed (ESF printing system, language PCL).

    We have 3 print queues in Windows print - P1, P2, P3 server. All 3 have the common TCP port - at the end, there is multifunction print device: HP M4555, where we tied - sorter of stapling to the 3 bins 900 leaves HP (CE736A) and configured in this way:

    1 P1 queue prints to: upper left bin.

    2 P2 queue prints to: average left bin.

    2 P3 queue prints to: lower left bin.

    When I print the test page from windows server to P1, P2 and P3 - ir printed paper properly in appropriate output tray. But my problem is that these print jobs, coming from the Mainframe to these queues - are not sorted by bin (P1 to P2 - in the Middle, P3, Upper - Lower) - the paper goes to a location, for example - Upper (or if not configured device in Control Panel mode mailbox - Lower).

    I have fought with this problem too long and cannot be resolved.

    Driver, that is used:

    HP LaserJet M4555 MFP PCL 6.

    P2/properties/Device Settings:

    Accessory output bin: HP 3 stapler/stacker - Mailbox Mode:

    Output:

    I already tried to change the settings to:

    1 Windows print queue server settings;

    2. from the device settings (side of built-in web server);

    3. the side HP jet admin web.

    Nothing happens. For me it is too difficult, which is priority 1, 2. or 3. option, see above?

    Location:

    Impatience on your part.

    Andrejs Sobolevs

    Service Desk COMPUTER team

    This problem has been resolved the side Mainframe, VPS printing system. Administrator has made the installation program there. There is no need to do it on the side of the unit.

    Solved.

  • I tried to buy adobe first pro, but the payment information page does not load

    tried to buy adobe first pro but the payment information page does not load, I left open for a while, given market and nothing.  Anyone else having this problem?

    [transferred to The Adobe Creative cloud of mod]

    Hello

    Please try to change the browser, or clear the cache, and then try again.

    Kind regards

    Shelly

  • I use creative cloud of Adobe Premiere Pro and it does not allow me to drag. In the line of time, only the audio files of the video MXF files. Plays in the video source, but does not allow me to change on the time line with the. MXF files.

    I use creative cloud of Adobe Premiere Pro and it does not allow me to drag. In the line of time, only the audio files of the video MXF files. Video plays in the source window, but does not to drag me and thenedit on the time line with the. MXF files. audio will slide to the time line, but not the video. Interestingly, not later than end of December 2015 it allowed me to change with .mxf files, but no, it won't. Any help out there?

    Neil, get it fixed, I do not have the video channels set correctly on the left

    side of the line of the time. Learn the new adobe; Thank you

    Monday, February 15, 2016 13:20, R Neil Haugen [email protected]>

  • Hello, I'am getting a little crazy because Group/scrolling text does not. I looked at several videos of Adobe evangelists now to make a scrolling text or group.  I ' am in collaboration with InDesign CC and it looks like my 'Overlay tools' do not work.  W

    Hello, I'am getting a little crazy because Group/scrolling text does not. I looked at several videos of Adobe evangelists now to make a scrolling text or group.  I ' am in collaboration with InDesign CC and it looks like my 'Overlay tools' do not work.  When I see the preview, I can't scroll but only to select text. My steps are simple: I put my text in a selected area. PLACE IN > that select > Folio overlays > floating framework. It does not scroll. What I've done wrong?

    Schermafbeelding 2016-02-14 om 14.57.41.pngSchermafbeelding 2016-02-14 om 14.56.38.png

    DAT danced some overlays avenues (!) reviews Regolamento zijn voor DPS books, due noch het SWF-noch het ePUB-voorvertoningsvenster laten zien said. Het due zal ook niet werken in bv. en PDF een in een ePUB avenues in FXL - epub puts extra een saw CSS code. DHS avenues from DPS DPS 2015 (article) maar voorvertonen zal het niet anyway (folio).

    Werk I niet met DPS (peper, peperduur!) vergeet dan het hele Overlay window DHS.

  • I converted the text to the shape in illustrator and I try to apply a dotted around the shape; However, it does not work.

    I converted the text to the shape in illustrator and I try to apply a dotted around the shape; However, it does not work. Maybe I'm missing a step? Any suggestions?

    Capture.PNG

    The settings that you should should work. I agree with sisham, to keep things simple and only put 5 in the first 2 fields, or your H will resemble each other.

    Now, you must have something else, and I suggest you select the element and to dissociate in the appearance menu > clear appearance. Then apply the dotted line.

    If you can post your file, am sure we could find what is worrying, but my guess is you have your dashboard applied, and which is overridden by a stroke applied to the group or level of the layer and dashboard you

Maybe you are looking for

  • Disable backups iCloud will delete old backups and free storage?

    I need to keep my current backup in iCloud for awhile (maybe a month, maybe more, until I have find a way to download it somehow) and I'm afraid that my phone re-writing it one night if I forget and leave it with wifi at a charge. Can someone check a

  • When I place an icon on the home screen, can I change the label?

    When I place an icon on the home screen using firefox for android on my tablet from Samsung, the label is inserted for me. How can I change

  • With OfficeJet Pro 8500 Mac user

    Cannot scan, message on the printer screen says "No. analysis options refer device documentation to solve problems" - but can't find a solution. Can anyone help?

  • Video recording VHS on DVD

    I purchest a new Dell Studio computer Vista last week and I would like to put my video I have on cassettes VHS on DVD, what do I need and how do I connect it?

  • How to use print screen (part two)?

    The previous thread for the print screen function was marked as read-only and will not allow replies. I tried all the suggestions (PrtScr, CTRL + C + PrtScr, etc.) and then CTRL V in MS Paint, but print screen still does not work on my machine. I am