Get unique sort result ids

ID SORT
2000001 1
2000054 1
2000161 1
2004102 1
2000126 8
2000161 8
2004102 8
2000001 51
2000054 51
2000161 51
2004102 51
2000126 58
2000161 58
2004102 58
Output
ID SORT
2000001 1
2000054 1
2000161 1
2004102 1
2000126 8
2000161 8
2004102 8
we want all unique ID values with minimum sort values

Try the below:
;With cte
as
(Select *,Row_number() over(partition by id order by SORT asc) Rn From Table)
Select * From cte
Where Rn=1

Similar Messages

  • Need to sort results in a report in descending order

    Hi,
    We have OIM 10g and we need to sort the report on date in descending order. I tried this code but still the column is not getting sorted.
    Evertime I generate the report, the results are sorted only in ascending order.
    Here the stored procedure code for sorting:
    strOrderByClause := 'abc.date';
    IF strsortorder_in = 'DESC' THEN
    intSortDirection_in := 0;
    ELSE
    intSortDirection_in := 1;
    END IF;
    Please let me know if you have faced similar issue.
    Thanks,
    Kalpana.

    Hi,
    If Oracle can give you back the right sort order without any custom sorting,
    that means you should be able to get the same results in WebI.
    If the object that you pull from the universe is the wrong type (like numeric but you want it alphanumeric),
    then you can either request you designer to give you an object with the right data type,
    or you can change it by creating a report variable using
    FormatNumber([original object],"0")
    this will format the number to a number without leading zeroes, thousand separators or decimal point.
    Now you can use the object as if it came from the universe.
    So you can also use it on the x-axis of a chart.
    Btw. you can also do a custom sort on the x-axis(as long as it is an object or variable, not a formula)
    alternative, if you define a custom sort in a table block, you can state it should be used througout the document.
    (so also in the charts.
    Hope this helps,
    Marianne

  • Uniqueness of conversation IDs(?)

    In WebLogic81sp5/WLI8.5 I use a service control to call a conversational Web service from a JPD process. The service control exposes two methods, clientRequest (conversation state: start) and a callback method, clientResponse (conversation state: finish).
    When I call the clientRequest method (in a Control send node), the service control generates a unique conversation id of the form:
    [<processInstanceID>]myserviceControl:<AUniquePart>
    Now, the web service may not reply, so I put a Timeout path on my Control send/Control receive structure, configured to retry once. In case the response does not arrive within, say, 1 minute, the request is resent, generating a new conversation ID for the service control:
    [<processInstanceID>]myserviceControl:<AnotherUniquePart>
    So far, so good. But now the fun starts: Assume that the first response was only delayed, not lost. After 1.5 minutes it arrives, bearing the original conversation ID in a <CallbackHeader> element in the SOAP header. Because the service control is now tied to the new conversation ID, I would expect the Workshop framework to ignore the incoming (delayed) response and just return a SOAPFault saying that the conversation ID is unknown.
    However, the process happily accepts the old message, even if the conversation ID is outdated?
    In fact, when the second response arrives, IT triggers a SOAPFault stating that the conversation is unknown.
    Workshops seems to discard the unique part of the service control conversation ID, given that the error message reads: "An attempt was made to send a request to conversation id <processInstanceID>. This is not a valid conversation id." So for conversation control, Workshop only uses the process instance ID?
    I tested this theory by having the web service return with a modified conversation ID in the header, like:
    [<processInstanceID>]myserviceControl:BLAHBLAHBLAH
    Indeed, the process happily accepts this response and continues?!
    Is this how the Workshop framework is supposed to work, or is there some switch that I am not aware of? In other words, how can I make sure that Workshop does not loose the uniqueness of a service control ID and just accepts any incoming message to the process instance in question?
    (This becomes a serious issue if the control is used more than once in a process. Assume requestA will generate responseA ('SUCCESS'), and requestB will generate responseB ('FAILURE'). If the Control receive node waiting for responseA times out, it causes requestA to be resent. Now, if the first responseA is received, it will appear to the process as belonging to the second requestA. This is not critical; however, when the process now sends off requestB, it receives (and accepts) the second responseA as belonging to requestB! Since responseA and responseB differ (SUCCESS/FAILURE), the process now thinks that requestB went fine even though it actually failed.)
    If you are still with me so far, I thank you for reading and apologize for the lengthy post...
    / Anders

    Hi Anders
    Hi
    I tested your scenario and it seems to work as designed.
    It is true that the process Instance Id is what JPD considers and not the whole of conversationId.
    So which ever response "comes first" will be consumed and other will get dropped.This is what we see now.
    Here are the convId and the results for 2 concurrent requests.
    JPD ---> Service control ---> JWS
    Req 1:
    <conversationID>[1152668451563]ws:192.168.1.100-1be3a66.10c6056ed9d.-7f8d</conversationID>
    Retry1:
    <conversationID>[1152668451563]ws:192.168.1.100-1be3a66.10c6056ed9d.-7f87</conversationID>
    Response1:
    Actual response with convId [1152668451563]ws:192.168.1.100-1be3a66.10c6056ed9d.-7f8d
    Retry1 Response:
    Failure with conv Id [1152668451563]ws:192.168.1.100-1be3a66.10c6056ed9d.-7f87
    com.bea.wlw.runtime.core.bean.ConversationNotFoundException: An attempt was made to send a request to conversation id 1152668451563. This is not a valid conversation id. The most common cause of this exception is an attempt to send a request to a conversation that has already been
    Request2:
    <conversationID>[1152668454958]ws:192.168.1.100-1be3a66.10c6056ed9d.-7f8a</conversationID>
    Retry of request2:
    <conversationID>[1152667953547]ws:192.168.1.100-1be3a66.10c6056ed9d.-7fa5</conversationID>
    Response1:
    Actual response with convId [1152668454958]ws:192.168.1.100-1be3a66.10c6056ed9d.-7f8a
    Retry1 Response:
    Failure with conv Id [1152667953547]ws:192.168.1.100-1be3a66.10c6056ed9d.-7fa5
    com.bea.wlw.runtime.core.bean.ConversationNotFoundException: An attempt was made to send a request to conversation id 1152668451563. This is not a valid conversation id. The most common cause of this exception is an attempt to send a request to a conversation that has already been
    MULTIPLE CONTROL INSTANCES:
    In this case I believe we can use control factory to create multiple control instances and so they get unique control instance id also and so the responses are consumed correctly not across the requests as you mentioned here.
    You can define a factory like
    * @common:control
    private test.WsControlFactory wsFac;
    and then create the instances by
    public void wsSayHello1() throws Exception
    WsControl ws1 = wsFac.create();
    WsControl ws2 = wsFac.create();
    ws1.sayHello(timeout);
    ws2.sayHello(timeout);
    I have tested this scenario also.
    the conv id looks like
    control instance1 (ws1)
    <conversationID>[1152668886228]wsFac:0:192.168.1.100-1be3a66.10c6056ed9d.-7f79</conversationID>
    control instance2 (ws2)
    <conversationID>[1152668886228]wsFac:1:192.168.1.100-1be3a66.10c6056ed9d.-7f77</conversationID>
    control instance1 retry
    <conversationID>[1152668886228]wsFac:2:192.168.1.100-1be3a66.10c6056ed9d.-7f6f</conversationID>
    control instance2 retry
    <conversationID>[1152668886228]wsFac:3:192.168.1.100-1be3a66.10c6056ed9d.-7f6d</conversationID>
    Please let me know if you have any questions or you see a different behavior.
    Thanks
    Vimala

  • When i open firefox browser i get a sort of pop under of the weather channel which i can't close. how can i close it?

    When i open firefox browser i get a sort of pop under of the weather channel which i can't close. how can i close it? Approx 1 quarter of the left side of the screen is taken up by this popunder. I've rebooted. No difference. Ive even done a system restore, No difference. I've done a search of my whole p.c. with no result.It appears to be only on firefox as it's not there on internet explorer. I've tried to attach a screen shot for you but no luck. I hope you can help me ,as I've tried everything I can think of.

    When i open firefox browser i get a sort of pop under of the weather channel which i can't close. how can i close it? Approx 1 quarter of the left side of the screen is taken up by this popunder. I've rebooted. No difference. Ive even done a system restore, No difference. I've done a search of my whole p.c. with no result.It appears to be only on firefox as it's not there on internet explorer. I've tried to attach a screen shot for you but no luck. I hope you can help me ,as I've tried everything I can think of.

  • Can I put more than one user under one Apple ID account. I want to let other family members use imessage on their own Apple device. Or is there another way to get this end result?

    Can I put more than one user under one Apple ID account. I want to let other family members use imessage on their own Apple device. Or is there another way to get this end result?

    You can seach the net for solutions like this one http://appletvvpn.com/how-to-connect-apple-tv-2-to-vpn/ another idea is to use a PC as the control and fit that with a wireless card and set up a ad hoc wireless network that the Apple TV uses. 

  • Can I get my kids apple IDs on my account?

    We have 4 devices between 3 people. Is it possible to get my kids apple IDs connected to my iTunes account? Or do I need 3 different itunes accounts on my computer?

    You must be within the Country with a Valid Billing Address and Credit Card for that Country to use the iTunes Store of that Country...

  • Get unique value for a range of values from a table

    Please help to identify the sql to get unique value for following scenario
    Table A has 3 columns
    column1 column2 column3

    user7666373 wrote:
    Please help to identify the sql to get unique value for following scenarioUnique combinations of three columns? If so:
    select DISTINCT column1,column2,column3 from A;SY.

  • I tried to install yosemite yesterday and my computer goes through the whole installation process and then to a blank white screen.  I've rebooted, I've reinstalled several times and get the same result.  Two days wasted!

    I tried to install yosemite yesterday and my computer goes through the whole installation process and then to a blank white screen.  I've rebooted, I've reinstalled several times and get the same result.  Two days wasted and I can't use my computer!!

    I don't know if you've already resolved your problem, but I had the same thing, it took me 6 hours to fix it. I had the exact same as you, installed the update and then it went to a white screen. After trying start up holding down cmmd r or holding down the alt key to try to install it again, nothing worked, same result every time. Then an angel came to me here somewhere but I can't find it now to thank him. Start in safe mode, press shift once you hear the start up chime and hold it down until you hear it again. Installation completion box came up and it was working. turn off computer and start up again normally and all is well. Except my final cut pro x doesn't work with it, have to update that now too. same as when I updated to mavericks.
    Hope this helps.

  • I am trying to get into my Game Center app but every time I tap on the app it opens too a blank white screen. I have tried several times to reset my phone but I get the same result.

    I am trying to get into my Game Center app but every time I tap on the app it opens too a blank white screen. I have tried several times to reset my phone but I get the same result.

    Hello there Sweebs44,
    It sounds like you are tapping the Game Center app to open it, but the screen is blank. I recommend signing out of your account:
    Go to Settings > Game Center, where you can:
    Sign out (tap your Apple ID)
    From: iPhone User Guide
              http://help.apple.com/iphone/7/#/iph6c493cac
    Then close all the running apps:
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    Double-click the Home button.
    Swipe left or right until you have located the app you wish to close.
    Swipe the app up to close it.
    When you have done that restart the phone sign back into your account and try again:
    iOS: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/ht1430
    Thank you for using Apple Support Communities.
    Take care,
    Sterling

  • I am trying to download an album from ITUNES and I keep getting a "session has timed out" message with no further option but to try again. I get the same results. Anyone have any ideas?

    I am trying to download and album off ITUNES but when I get to the billing site and attempt to purchase it, it gives me a message saying "Your Session has timed out." It gives me no other option that to try again and I just keep getting the same results. Anyone have any ideas on what I can do?

    Hi, Kenny. 
    Thank you for visiting Apple Support Communities. 
    There are a couple things that I would recommend trying.  Try closing all open applications and power cycle the device.  Next, go through the section labeled Troubleshoot issues on an iPhone, iPad, or iPod touch in the second article below.  If the issue persists, try completely signing out of the iTunes Store on the iOS device and sign back in.  Be sure to test downloading an application after each step. 
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    Can't connect to the iTunes Store
    http://support.apple.com/kb/ts1368
    iOS: Changing the signed-in iTunes Store Apple ID account
    http://support.apple.com/kb/ht1311
    Cheers,
    Jason H. 

  • HT4798 i created my apple id account, verified but know i m unable to log on, it says incorrect password, i tried to reset via forgot password option but it does not send reset password page to my e- mail address, how can i get this sorted or delete my pr

    User created apple id account, verified but know she is unable to log on, it says incorrect password, she tried to reset via forgot password option but it does not send reset password page to here e- mail address, how can i get this sorted? or how can i get her whole apple account deleted and created new one using same e - mail address?

    The idea to jumpstart by change was not the smartest one, but gives you an opportunity to use that "temporary" account as permanent. You do not have a choice cause obviously despite you thinking that old account is no more -it does exist on Apple servers. And if you are unwilling to share your [email protected] with friend, just create one extra [email protected] for your friend. One suggestion - do not use gmail.

  • Any ideas on how we could get any sort of shop stamp or other identifying mark onto our fillable pdf on an ipad.

    I am looking for any ideas on how we could get any sort of shop stamp or other identifying mark onto our fillable pdf on an ipad.
    The scenario is that when we do a job as opposed to our regular contract work, at a large nationwide retailer, their accounts people want the shop's stamp, as proof of the work being done.
    Currently the 'paper' service report is just stamped. For the regular contract work, whoever signs the service report just uses their finger to sign the report, on the iPad.
    On a PC the shop could just set up an electronic signature as their 'shop stamp', but the iPad is another story.
    I am having a vision of ink stamps all over the iPad screen. LoL
    Any ideas would be appreciated.

    Unlike the desktop version of Adobe Reader, Reader mobile products (for iOS, Android, Windows Phone) do not support stamp annotations yet.
    If you'd like, you can submit the Feature Request form.  The Product Management team will take your request into consideration for a future release of Adobe Reader for iOS.
    Thank you for the feedback!

  • My iphone 6 connects to the car via bluetooth, the music works good, but the phone calles does not work.  It looks like it is working but doesn't.  I have tried in my Hyundai and a Dodge rent car and get the same results.  I updated the last 8.0.2.

    My iphone 6 connects to the car via bluetooth, the music works good, but the phone calls does not work.  It looks like it is working but doesn't.  I have tried in my Hyundai Sonata and a Dodge Dart rent car and get the same results.  I updated the last 8.0.2.  It worked the first day i had the phone, and then i updated to Ios 8.0.2 and it quit working.
    Now when i get in the car, it acts like it is connected and makes the same call it was on after syncing to bluetooth, but it really isn't on a call.  This is happening on both cars.
    Does anyone know if this is the phone and i need to take it to Apple or if there is an issue that Apple is working on getting a fix for?
    My son in law has the exact same phone as me, we both got the on 10/6, he had a Dodge Dart and his is working via bluetooth.
    Someone HELP please, as i consider this a safety issue by not having my calls go to bluetooth.

    We had the same problem, but figure out the solution.
    You MUST have at least 1 song added to your ITUNE!  After you add a free song, then everything else should work as normal!
    Hope this helps!

  • Do not seem to be able to backup iPad via iTunes on to my PC. Message after connecting is "iTunes was unable to load class information from Sync Services, Reconnect or try later"  Have tried that but get the same result. Can anyone assist?

    Do not seem to be able to backup iPad via iTunes on to my PC.
    Message after connecting is "iTunes was unable to load class information from Sync Services, Reconnect or try later" 
    Have tried that but get the same result.
    Remedies I've tried are:
    wait and try again
    reboot
    reload iTunes
    NB hp is a relatively new machine and has previously backed up quite happily.
    Can anyone assist?

    RHoodnkt-
    Try rebooting the iPad.  Hold down both the Home and Sleep buttons for several seconds until the Apple logo appears.  Ignore the "Slide to power off" arrow.  It takes a minute or two to restart.
    Also be sure your iPad battery is not completely discharged.
    Fred

  • How to get the fixed result in a DES/CBC mode with fixed input data and fix

    How to get the fixed result in a DES/CBC mode with fixed input data and fixed key. Below is my program , I tried to get the checksum of the DESInputData with the DESKeyData, but each time the result is different.
    below is my code:
    byte[] DESKeyData = {(byte)0x01 ,(byte)0x01 ,(byte)0x01 ,(byte)0x01, (byte)0x01 ,(byte)0x01 ,(byte)0x01 ,(byte)0x01 };
    byte[] DESInputData = {(byte)0x31 ,(byte)0x31 ,(byte)0x31 ,(byte)0x31,(byte)0x31 ,(byte)0x31 ,(byte)0x31 ,(byte)0x31 };
    SecretKeySpec skey = new SecretKeySpec( DESKeyData, "DES" );
    Cipher cipher = Cipher.getInstance("DES/CBC/NoPadding");
    cipher.init( Cipher.ENCRYPT_MODE, skey );
    byte[] result = cipher.doFinal( DESInputData );

    Use class javax.crypto.spec.IvParameterSpec to specify IV for CBC mode cipher:
    // Create CBC-mode triple-DES cipher.
    Cipher c = Cipher.getInstance("DESede/CBC/PKCS5Padding");
    // Specify IV.
    IvParameterSpec iv = new IvParameterSpec(new byte[] { (byte)0x01, (byte)0x23, (byte)0x45, (byte)0x67, (byte)0x89, (byte)0xAB, (byte)0xCD, (byte)0xEF });
    // Initialize cipher with proper IV.
    c.init(Cipher.ENCRYPT_MODE, yourKey, iv);
    // Encrypt and decrypt should work ok now.
    For more info about cryptography, search the Internet for IntroToCrypto.pdf from mr. Phil Zimmerman. This document is also part of PGP (http://www.pgp.com).
    An excellent book is 'Applied Cryptography' from Bruce Schneier (http://www.counterpane.com/applied.html).
    Regards,
    Ronald Maas

Maybe you are looking for

  • HT1420 I have two email accounts associated with one iTunes account

    I have two email accounts associated with one iTunes account with two passwords,  I guess it happened when i changed my internet service provider. 

  • Outlook sync problem : calendar is not complete...

    Hi all, i have connected and synchronized my Ipod Touch with Outlook2003 SP3, under XP PRO, Itunes version 7.4. Contacts are ok, but my appointments on calendar are not all synchronized. For example, today i have 4 meetings on Outloo, only one is pre

  • Netweaver 2004s Trial Stopped Working

    My SAP server has stopped working a while back and I have no idea where to even look... I use the SAP Management Console on windows XP SP2 with MaxDB as the database. When I try to start the server, all the processes start and then work+disp.exe dies

  • Downloaded yahoo im, now firefox will not start

    I downloaded yahoo instant messaging, so I can chat live with my sister. After downloading I tried to get back on the internet and firefox would not load but google chrome would. Are they not compatible, do I need to re-download firefox?

  • I cannot update my system, error in app store

    I cannot update system to mountain lion, 'an error in app store, please try again. (13)'