How to show employee names in descending order but 3rd row is fixed and always top on the table ?

how to show employee names in descending order but 3rd row is fixed and always top on the table ?
for example employee names is A,B,C, D, E
and output is     C,E,D,B,A

Since you are posting in the design forum, the short answer is - you don't.  Rows in a table have no inherent order that you can rely on and the "position" of rows is a visual characteristic that should be implemented by the application that displays
this information or by the query that is used to generate the resultset.  
So the next question is how one accomplishes this particular order within a select statement.  That is a tsql question which, for future reference, is best posted to the tsql forum.  In addition, many of the questions or issues that you will face
have been discussed in the forums - often many, many times.  The first thing you should do when faced with an issue is to simply search the forums and leverage the the knowledge that has already been discussed.  In doing so you are quite likely to
see suggestions or related issues that you should consider in your search for a solution.  
Now, to answer the question - you need to formulate a order by clause that forces the rows to be sorted in the manner you desire.  Effectively you have 2 levels of sorting.  The first level divides your rows into 2 groups.  Group 1 consists
of rows where name = E and Group 2 is everything else.  Following that you then need to sort the rows in each group by name in descending order.  Something like:  
order by case name when E then 1 else 2 end, name desc

Similar Messages

  • How to show company name and contact name on the incoming calls of iPhone 4

    Kindly provide me with a useful solution of how to show company name and contact name on the incoming calls of iPhone4.
    even with an application or from the setting of the iPhone itself, but without telling me a solution like writting the company name in the contact name field.
    This is a very important option, i think it is a must, not an option and apple should fix this problem fastly. because it is already available in the older models of iPhone like iPhone 3G and 3GS.
    How an important feature like this could be available in old models, but in the later models is not available?

    Currently not possible without putting the company name in the contact name's field.  AFAIK, it's never been available on any iOS version.
    You might check the App Store for an app that can do this although I'm pretty sure you won't find one.
    http://www.apple.com/feedback/iphone.html

  • TS1424 i ordered a album i didnt want and to top it off the sangs are only half there how do i delete purchase and refund my money so i can get the right album?

    i ordered a album i didnt want and to top it off the sangs are only half there how do i delete purchase and refund my money so i can get the right album?

    There are no refunds.
    If the songs are incomplete then delete and redownload:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • How to find accurate number of Rows, and size of all the tables of a Schema

    HI,
    How to find the accurate number of Rows, and size of all the tables of a Schema ????
    Thanks.

    SELECT t.table_name AS "Table Name",
    t.num_rows AS "Rows",
    t.avg_row_len AS "Avg Row Len",
    Trunc((t.blocks * p.value)/1024) AS "Size KB",
    t.last_analyzed AS "Last Analyzed"
    FROM dba_tables t,
    v$parameter p
    WHERE t.owner = Decode(Upper('&1'), 'ALL', t.owner, Upper('&1'))
    AND p.name = 'db_block_size'
    ORDER by 4 desc nulls last;
    ## Gather schema stats
    begin
    dbms_stats.gather_schema_stats(ownname=>'SYSLOG');
    end;
    ## Gather a particular table stats of a schema
    begin
    DBMS_STATS.gather_table_stats(ownname=>'syslog',tabname=>'logs');
    end;
    http://www.oradev.com/create_statistics.jsp
    Hope this will work.
    Regards
    Asif Kabir
    -- Mark the answer as correct/helpful

  • How can I email a video clip I downloaded into my iPhoto library to my friends? I tried creating an email and attaching the clip but there is no sound and no picture when the 5 minute attachment "plays." How can I file= export it to them from iPhoto?

    How can I email a video clip I downloaded into my iPhoto library to my friends? I tried creating an email and attaching the clip but there is no sound and no picture when the 5 minute attachment "plays." How can I file=>export it to them from iPhoto?

    Have them install Quicktime on their PC's from Apple's website, that's the easiest fix.

  • I downloaded the 64 bit version of itunes and plugged in my ipod touch but a sign pops up and says i need the right software for the ipod to connect which is 64 bit.  Does anyone know how to fix this problem?

    I downloaded the 64 bit version of itunes and plugged in my ipod touch but a sign pops up and says i need the right software for the ipod to connect which is 64 bit.  Does anyone know how to fix this problem?

    Hi alexanderfrommilton,
    First try reinstalling itunes.

  • HT1414 How do I get recent pictures back if I restored my old iPhone and it brought back the old pictures but the new ones are gone

    How do I get recent pictures back if I restored my old iPhone and it brought back the old pictures but the new ones are gone?!?

    Sorry your pictures are gone. 
    you should be doing this for all your pictures/videos http://support.apple.com/kb/HT4083  that way you can sync it back via itunes.

  • I am new in indesign scripting, please tell me how to write a script to get  content of a element in xml and then sort all the content

    I am new in indesign scripting, please tell me how to write a script to get  content of a element in xml and then sort all the content

    Hi,
    May the below code is useful for you, but I dont know how to sort.
    Edit the tag as per your job request.
    alert(app.activeDocument.xmlElements[0].contents)
    //Second alert
    var xe = app.activeDocument.xmlElements[0].evaluateXPathExpression("//marginalnote");
    alert(xe.length)
    for(i=0; i<xe.length; i++)
        alert(xe[i].texts[0].contents)
    Regards
    Siraj

  • How can I stop my iphone 4s from asking for my icloud, yahoo and other passwords all the time?

    How can I stop my iphone 4s from asking for my icloud, yahoo and other passwords all the time?

    As long as you share that AppleID for iCloud, you cannot.  You are sharing a a single iCloud account and sync services.  The only thing you can do is get a second AppleID and use it with iCloud - you do not have to use that new AppleID for anything but iCloud (ie. you can still share an AppleID for iTunes and App store purchases).
    P.S. I am assuming you both want to sync your contacts with iCloud?

  • How can I change the overall duration of a project.  I did it once but I can't remember and can't find the answer.

    How can I change the overall duration of a project.  I did it once but I can't remember and can't find the answer.

    You could add more content.
    Or if the project contains stills, these can be lengthened. Double-click on a still photo to open the Clip Inspector. Adjust the duration by typing in the Duration box. Be aware though that if you have transitions either side of the still, you may get odd results with the duration. See this thread for more details:
    https://discussions.apple.com/thread/4269161?tstart=0
    John
    PS. I'm assuming you want to lengthen the project, not shorten it.
    Message was edited by: John Cogdell - added PS

  • How can I attach several images to my Outlook Mac 2011 email message and have all of the images reduced in size while they are being sent out. Thank you

    How can I attach several images to my Outlook Mac 2011 email message and have all of the images reduced in size while they are being sent out. Thank you

    https://discussions.apple.com/message/11994130#11994130

  • It downloads version 4.1 - but does not install it and always shows this as Firefox 4.0 - Yahoo edition. Moreover the tabs open when I close firefox do not open when I start next.

    Question
    It downloads version 4.1 - but does not install it and always shows this as Firefox 4.0 - Yahoo edition. Moreover the tabs open when I close firefox do not open when I start next. edit
    Details

    Download the official version of Firefox 4.0.1 here: <br />
    http://www.mozilla.com/en-US/firefox/
    Then un-install that Yahoo branded version and install the official version.

  • HT4859 My phone some how deleted not all but most of my contacts and then backup to the iCloud can I go back to a previous backup and retrieve the contacts. If so how.

    My phone some how deleted not all but most of my contacts and then backup to the iCloud can I go back to a previous backup and retrieve the contacts. If so how.

    Hi Shero89,
    Thanks for the answer.  I am not new to IOS software but I don't really ever bother with it, have discovered how little I take advantage of the i-phones capability, in reality I still only really use it to phone, text, check emails, listen to music and look on internet.  I'm not keen on jailbreaking it as I don't trust it to work so normally just update and leave it at that.  Only reason I wanted to downgrade was because the update had stopped my bluetooth working but Kilted Tim solved that problem for me so am now not interested in downgrading software.  I quite liked the things that IOS 5.1 gave me but wasn't happy with fact that bluetooth stopped working in car as it caused me problems.  One day I might try and work out exactly what I-phones can do but on the basis that it's a phone all I really want it to do is phone, if that bit works I'm happy.

  • HT1373 how can you set up another iTunes account but keep all your purchases and music from a previous account

    how can you set up another iTunes account but keep all your purchases and music from a previous account

    An iTunes account is something you log into online to buy music.
    An iTunes library is a collection of media and other items (including apps) on your computer.  This is what you see when you open iTunes.
    So, do you mean account or library?  You can set up a new iTunes account but all your purchases made in that account will remain in the old account and cannot be moved.  You can set up a new library by starting iTunes and immediately hold down the option key.

  • How to assign employee responsible of service order to customer follow up?

    Hi everyone,
         when i create a customer follow up for a service contract, my partner number is assigned to employee responsible by default. However i want the employee responsible for the service contact to be copied to the follow up.I checked the partner determination procedure, which is properly configured.
         And i also want to know, why my partner number is getting assigned to the employee responsible.
         I checked the corresponding node getter method, where the collection wrapper contains my partner number for the partner function employee responsible.
         Please suggest some solutions.

    I'm saying that you didn't search SCN because your first post shows this. You didn't give any details neither how your PDP is "properly configured". If it'd have been configured properly you would not get the issue, right?
    Another thing is if you searched SCN on partner determination you would find FM  CRM_PARTNER_DETERMINATION_OW. This the API which is triggered from BOL layer. And the result is transferred to BOL layer and available in "collection_wrapper".
    Now you gave some more tips. For example, that the same PDP is used for other transaction types. That's better.
    First of all, as Nagaraj Sarangamath said. Check if your employee responsible partner function in the PDP has an access sequence which takes the employee responsible from preceding document prior to the access which takes the current user. Which access sequence is maintained in your PDP for employee responsible? What steps does it have?
    Another thing which is  Sigrid Wieshofer mentioned is how is your assignment of partner functions to business transactions in IC set? What is in the mentioned IMG setting?
    One more tip is if the copy control is activated for activities in your system and has been set up for other transaction types except your Custom follow up. In the copy control you can actually handle partner determination as well.

Maybe you are looking for

  • SOAP Exception in JWSDP1.2

    Hi, We are using jtomcat4.1 and j2sdk1.4.2_01 with jwsdp1.2 to access a webservice using JSP. When SOAP Exception has to be thrown from the WebService, We are getting, "java.rmi.RemoteException: Runtime exception; nested exception is: trailing block

  • Working offline with data from Access 2010 web database

    Hello all, I have an Access 2010 web database that I have published to a SharePoint site. Users currently work with the data via one of several Access 2010 front end applications that simply have linked tables and client queires, forms and reports. O

  • Analysing waveform for digital values stored in a file

    i have certain digitals values obtained in a file in .txt format. i have to obtain a waveform by giving the input as these digital values in that file. I have programmed for array input manually. But the waveform analysis should be made such that it

  • Out of the blue, ITunes 11 on my MacBook Pro doesn't recognize either my iPad 2 or my iPod touch.

    I use the USB cable to sync both with iTunes on my MacBook Pro and it worked fine until a few days ago.  I tried both USB ports on the MacBook and 3 different 30 pin to USB cables, and they will charge both devices, but neither one shows up on the iT

  • I think I've just messed too much with my install

    Hi Recently, I have upgraded my system using the [testing] repo. Then I wanted to downgrade, and as I read somewhere here on the board, the only way of doing so is to manually remove packages and reinstall them after removing [testing] from pacman.co