Forms won't do order by after the formula columns or constants in union all

i have a big select as :
select * from
( select .....,id doc_id, '1' op from .....
union all
select ......., id doc_id, '2' op from .....
union all
select ......., id doc_id, '3' op from .....
) order by id, op
where i can have the same id for a number x >1 rows with diffrent values for op.
lets say 5 rows with values id plus 1,2,1,2,3 for op.
In a program unit i have a cursor with this select and i fetch every row and write them in a text file type .csv.
The problems are :
1) it won't do the order by after op ,
i say order by id, op but the result is only ordered after id
... id op
... 1 2
... 1 1
.... 1 2
2)
if i modify the select like this :
select ...., id, op from ---i put the aliases here instead of *
( select .....,id doc_id, '1' op from .....
union all
select ......., id doc_id, '2' op from .....
union all
select ......., id doc_id, '3' op from .....
) order by id, op
in the csv the column op in empty , so i only get the id information
... id op
... 1
... 1
.... 2
Any idea ?
Oh and my screen goes white , the form block sometimes when i have a "difficult "
select but after a while i get the result i wanted (message or csv file)

select * from
( select .....,id doc_id, '1' op from .....
union all
select ......., id doc_id, '2' op from .....
union all
select ......., id doc_id, '3' op from .....
) order by id, op
The problems are :
1) it won't do the order by after op ,
i say order by id, op but the result is only ordered after id
select * from
( select .....,id doc_id, '1' op from .....
union all
select ......., id doc_id, '2' op from .....
union all
select ......., id doc_id, '3' op from .....
) order by 3,4
if[u] id is 3 column positions, and '1' op is 4 column positions in UNION-SELECT
Hope this helps

Similar Messages

  • I'm tying to make a payment for photoshop but the fields on the payment form won't allow me to enter the correct card information.  Im based in Japan but my card is registered to a UK address.  the fields only allow for a Japanese style address and postco

    I'm tying to make a payment for photoshop but the fields on the payment form won't allow me to enter the correct card information.  Im based in Japan but my card is registered to a UK address.  the fields only allow for a Japanese style address and postcode.  What can i do to complete the payment and get photoshop!

    As far as I know, your registered location and your credit card information must match... but,
    This is an open forum, not Adobe support... you need Adobe staff to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"
    -or by telephone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html

  • I paid my order right after the confirmation came in, but i don't get a confirmation that i paid, and i paid it about one and a half week ago, what can i do?

    I paid my order right after the confirmation came in, but i don't get a confirmation that i paid, and i paid it about one and a half week ago, what can i do?

    Download from Download CS5 products
    Install then enter your serial number.

  • Applying order by for the data comming from the formula column

    Dear Friends,
    I am having a report in which some of the columns in which data is comming from the formula columns,but i need the data in asc order.
    How can i do it.
    Please advice.

    I am having a report in which some of the columns in
    which data is coming from the formula columns,but i
    need the data in asc order.Lets say you have this query:
    select empno, sal, comm from emp
    And you have empno, sal, comm and a formula column 'f_percentage' in one group. Add one dummy column in the query, like this:
    select 'temp' temp, empno, sal, comm from emp
    Move this 'temp' column into the second group (drag and drop outside the first group). You don't have to create repeating frame/or need to show this 'temp' column on the report.
    Now if you use break order on formula column, that should work. Make sure you have break order on other columns also. Arrange items (change order) in data model as you needed. Run your report before and after this change and make sure you have same number of rows before and after this change.
    (from reports builder's help)
    "Break Order has no effect on columns that belong to the lowest group of a particular query. Break Order only affects columns in groups that are above the lowest child group of a query"

  • After the last update disco bees has lost all my completed levels

    After the latest update disco bees has lost all my completed levels

    IIt's ok it has now been resolved and all my games have been restored!

  • Upgraded to 5.0, then 5.0.1. In the process the various calendar "types" disappeared, but at least all entries showed in Ical, with entries made after the upgrade showing pinkish/red. Yesterday all formerly made entries, disappeared. any tips?

    Upgraded to 5.0, then 5.0.1. In the process the various calendar "types" disappeared, but at least all entries showed in Ical, with entries made after the upgrade showing pinkish/red. Yesterday all formerly made entries, both old and in the future, disappeared, only recently made ones in pink/red are shown. any tips?
    I did switch off and on, did a sync with itunes, etc, but no luck.

    RIM doesn't push the upgrades -- your service provider does so, once they have certified and approved the operating system upgrade for their devices.
    But, .973 does work on the 9520 in the manner you wish it would, I've used it myself on that model.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Calcualting the formula column total.

    Hi All,
    I am very new to bi publisher..I have a requirement where i need to find the total of the formula column..how can i achieve this?
    and also i need to find the total of balance group by month..here is the sample output what i need.Please help its urgent
    Date Amount CalcAmount Balance
    1-jun-2010 100 150 200
    3-jun-2010 50 50 300
    5-aug-2010 100 50 200
    6-aug-2010 300 60 400
    310
    Jun:500 Aug:600
    How to achive this....where calcamount field is not coming from any input file..this i did manually in rtf template..
    Please help is urgent
    Thanks in Advance
    Bharat

    Hi Ananth,
    i tried with this..Now the calculated column value its showing as NaN.
    my requiremnt is thr is one form value called OPC(reguler text) and the logic inside is <?xdofx:if APPLIED>AMT then to_number(APPLIED- AMT) else 0 ?>
    and as per yous solution i have created one form value below to that i wrote the logic like this <?xdoxslt:set_variable($_XDOCTX,'var', xdoxslt:get_variable($_XDOCTX,'var‘)+ OPC)?>
    and in the total column i have created one more form value and wrote this code <?xdoxslt:get_variable($_XDOCTX, 'var')?>
    so now the total is coming as NaN.
    Please help.
    Thanks
    Bharat

  • Why is the formula column returning garbage?

    I've set up a query that performs a full outer join on two tables, returning one field from each table. Each of these fields is created by concatenating several other fields from that table, i.e.
    Select a.field1 || a.field2 fielda, b.field3 || b.field4 fieldb from tablea full outer join tableb
    on a.field5 = b.field5
    where (a.field5 = :value or b.field5 = :value)
    For any :value one or more records exists in either tablea, tableb, or neither-but never in both. This works fine in SQL*Plus, returning values in fielda, fieldb, or neither-but never in both, just as it should.
    I then set up a formula column in the Group for the query, returning either fielda, fieldb, or an empty string depending on :value, i.e. If :value = 'A' then return (:fielda); ElsIf :value = 'B'; then return (:fieldb); Else return (''); End If;
    In the layout I set up a repeating frame sourced to the Group, and in the frame I put a field sourced to the formula column. But the field is displaying garbage. Any ideas why?
    Thanks.
    Edited by: user6931915 on Dec 6, 2010 1:36 PM
    OK, it's not returning garbage-it's just not returning the right data. It was appearing as garbage because the field was only large enough for 2 characters & I'd mistakenly left it set to Fixed.

    Since I'm so new to OS X Server - I have made many mistakes with it in my home learning environment - and therefore learned quickly to make image backups every step of the way - so restoring to v2.1 was very quick and simple.
    I also wanted to point out - this problem is not limited to the main screen of the Wiki.  If you disable the Wiki - but leave the default website enabled - the default website will display - but if you click on the change password link - it should pop up an enter user id, old password new password window and should also automatically switch to a trusted ssl connection - assuming you have a trusted certificate correctly configured.  This functionality works fine in Safari, Firefox and Chrome - but the same behavior occurs on the password change screen in IE9 as it does in the Wiki.
    I am now looking into submitting this to bugreport.apple.com.  I will report back after I do that.
    ~Scott

  • Creating the Order Line after the Invoice interface

    We have license items which has created as miscellaneous item which sends the fullfilment as soon as we book the order and creates an invoice, but we want to stop this line to be invoice prior to the other line gets into the ship confirmation. We are trying to create a custom node to create the license item after the invoice interface using workflow, but it looks tedious. Is there any other thoughts?
    Thanks,
    Srini C

    Hello,
    When you confirm shipping sales order goes to interface. You have to run auto-invoice to create invoice in AR. You have to create custom form base on this interface and auto-invoice. This form should give ability to select lines and run auto invoice for those lines . I do not know that is ok from your process point of view.
    Regards,
    Luko

  • 'Mail' won't get e-mail after the latest Security Update...

    Hey all...
    Title says it all. I did the Security Update a few days ago. After the restart, I lost all e-mail from 12/19 on, and have not been able to get new mail since then. The mac in doubt is a G5 iMac 20" running Tiger 10.4.11... No other updates have been done, and all of the other applications seem to work well. I know this is an 'update' issue, as I'm able to get new mail on my iPhone, Powerbook and work Dell.
    On a side note, I called Apple on this, and pretty much said the 'update' wasn't an issue.. really, cause it started happening right after the update..
    Any insight to fix this would be awesome...
    Thanks,
    Craig

    I did remove 'Mail' from the Library/Cache folder and then 'Envelope Index' from the Library/Mail folder.. rebooted after eraser... and nothing new, except for a prompt to re-install 'Mail'.. which I did...
    There's a problem there. Unless you deleted the actual Mail application, there would be no reason for any message to reinstall Mail triggered, since it's still there.
    At this point, you'll need to do an Archive & Install, with the Preserve Users and Network Settings option. This will remove the current system and replace it with a new one; all programs and data will be left intact. To do this:
    1. Quit all running applications and use Disk Utility to Repair Permissions.
    2. Insert your Mac OS X install/restore disc and boot your Mac from it (hold down the 'C' key until you see the statup screen).
    3. Select your language and proceed with an install as you normally would, but choose Archive & Install, with Preserve Users and Network Settings; run the installer.
    4. After your Mac restarts, eject the disk, then apply the 10.4.11 Combo Update (quit Software Update without updating anything).
    5. Run Software update to bring your system current, and delete the Previous Systems folder.
    6. Repair Permissions again, then restart your Mac and test for this problem.
    Mulder

  • After the latest Java Update, this is running all the time

    Anyone know what JavaApplicationStub is, and why it's running all the time now? I noticed this after the last Java update from Apple, which mentioned downloading something from Oracle, which I never did. thx!

    I have been experiencing this exact same problem ever since I upgraded.
    In addtion to what Mflor describes as the problem that's occurring, I even experience this when I'm playing my iPod on my docking station through the AppleTV. It just stops midway through the first song and continues to do so after 5-7 plays and that's only if I'm patient enough to deal with it.
    The message I get quickly once this occurs is that my AppleTV doesn't have an internet connection, but that message only appears for a quick second before it returns to the main AppleTV menu with ALL the options.
    I've even tried rebooting the AppleTV and this still occurs.

  • Form won't distribute. Here's the error and everything I've tried so far. Hope you can help

    I've seen at least 2 similar posts on the web, but they ended with no answer. After creating my form with LiveCycle Designer, saving as pdf, and hitting "DISTRIBUTE", I get this error:
    "The filename you specified is not valid because it does not include a .pdf extension, contains one or more invalid characters, or the path preceding it refers to a protected system location."
    So I've done all of the following, many of which were recommended in the other 2 posts, but similarly, have reached a dead-end. Distribute still doesn't work, so I can't use my form:
    I tried checking and unchecking the "hide extensions for known file types".
    I tried resaving the pdf with a simple one word name, no special characters, a word like hello.
    I tried moving the pdf and saving to C:\   root.
    There are no errors on the form.
    Why am I getting this error? I put a lot of work into the form, so am eager to start using it, but I can't really use it properly until I get past this Distribute step. I don't mind posting the form so someone can take a look at it and please help me. Thanks.

    FOR ANYONE WHO HAS THE SAME PROBLEM
    I FOUND THE "PROBLEM". IT'S SIMPLE:
    The file was just too deep within a path (folder inside a folder etc). All you have to do is move/copy the form/pdf to your desktop, then open it and hit Distribute. You will no longer get that error.
    Hope that helps.

  • Why won't GB open anymore after the 10.7.4 update?

    I recenty updated the software to 10.7.4 & now GarageBand won't open. I try to open a project with it but it gives me an error message saying something about MIDI...I have no idea what to do and i'm guessing it really is because of the update. If anyone knows what I can do let me know please, [email protected] thanks in advance.

    Glad it is working. As for the ownership on your home folder, before tinkering you might try running the list all, long command and see what it reports:
    ls -al /Users
    I have two users, myself and test account. Here's what mine says:
    NoobiX:~ francine$ ls -al /Users
    total 88
    drwxr-xr-x@ 7 root admin 238 Jan 26 15:01 .
    drwxrwxr-t@ 37 root admin 1326 Feb 23 11:35 ..
    -rw-r--r-- 1 root wheel 0 Sep 23 17:43 .localized
    drwxrwxrwt 16 root wheel 544 Feb 14 11:29 Shared
    drwxr-xr-x@ 44 francine staff 1496 Feb 26 08:27 francine
    drwxr-xr-x@ 16 revelator staff 544 Feb 23 14:58 revelator
    You can see that the "francine" home folder belongs to francine, group staff, the same as is reported by the id command. Let's see what yours says. Yours should say Miller, group Miller.
    The numerical uid and gid depend on the particular user and group. The 501 is the first admin user created. The second user is 502. The old private groups from Tiger had the same number for the group as for the user, thus the 502 user would be a member of the 502 group. The staff group is 20, the admin group is 80. What you are getting (502 and 502) means that at some point you deleted the very first user and started using a second account, and that you upgraded to Leopard rather than doing an erase and install, as I ended up doing (after getting disgusted with all the bolixed up group permissions problems). Leopard switched back to the UNIX standard of having users be members of the staff group rather than private groups. I know, more information than you ever wanted to have!
    Leopard also introduced the new Guest account, which can actually be quite handy. If you have someone who is visiting and wants to use your computer to check their email or do a little web surfing you can log yourself out and let them log in as Guest. The permissions are fairly restricted, there is no password, and all their stuff is deleted when they log out.
    Francine
    Francine
    Schwieder

  • My iPhone won't connect to iTunes, after the new update. What should I do?

    How do i get my iPhone 5c to connect to iTunes. It was just fine before the most recent update!

    Hy there,
    In order for you to solve this problem you have to follow these stept if your running windows:
    1'st step is to go into the device manager
    2 step is to go to portable devices (it is rught under network adapters)
    3 step is to right clic apple iphone and click update drivers
    4 step is to brows your drivers from C:\Program Files\Common Files\Apple\Mobile Device Support\Drivers
    After that your itunes will pump up alown and youl see your iphone right there.
    Good luck and sry for my bad righting.
    Andrei

  • Why won't SSH/SFTP work after the 10.6.8 update?

    I've tried just about eveything I can think of and have been googling information for awhile now but I figure I just ask the community!
    I just recently updated to 10.6.8 and now I cannot remotely log into our Linux machine running RedHat. Strange because my computer is the only one that seems to have a problem with this and it was working just fine before the update. Sometimes I'll get a "Connection Refused" error msg and other times I'll get a "Connection Timeout" error msg. I typically use the NoMachine NX client to log in, but even the ssh commands from the X11 or Mac terminal give me the same error messages. Anyone have any idea what's going on? Any help is appreciated, thanks!!

    Bloblo63 wrote:
    Unfortunately... the MBP shut down after some minute... also in safe mode !!!! The problem is not solved !
    Next step, boot in safe mode again and log in do this first:
    On the menu bar go to the "Go" option menu.
    Then go to utilities.
    Open disk utility
    Click on your Mac OS X Partition (Macintosh HD in most cases)
    Click "Verify Disk"
    If the results say "Macintosh HD appears to be OK", run it a second time just to make sure.
    If the volume structure is OK then click the "Repair Permissions" button.
    Shut down and reboot normally.
    If repairing permissions does not work, you'll have to try and install the combo update. But before we go through that run the steps I suggested above. I would suggest however to download the 10.6.8 combo update to a usb stick in case we have to reinstall it.
    Good Luck!

Maybe you are looking for

  • T-sql 2012 accept null parameter values

    The following t-sql 2012 works fine in sql management studio. However when I place it in a .net 2010 web form application, I am told the sql does not work when the parameter values are null. Thus can you tell me what I can change in the sql below tha

  • Query to get all active customers in oracle apps

    Hi All, I want to grab all active customers account number, customer name, email address, tel number. Could any one give me the query to get it. Thanks, Red.

  • 6 pt - 6 plot Chart

    hello one and all,  i am having a bit of trouble getting my head around this one.  i have a continuous loop.  within this loop i have "For Loop" that runs three times, N=3.  each iteration computes 2 points.  so a total of six for one iteration of th

  • TextInput Custom Skin with different for when focused in

    Hello, Is it possible to Skin a TextInput to look one way when not focused and another when focused in? Basically, have states based on focus? Thank you.

  • HT1051 Aperture photo books

    Does the payment address and the shipping address have to be in the same country? It gives me the opportunity to change my address but the drop down only allows me to select address as the same country as I am in...