How to Preserve order

hello everyone
I have a doubt regarding the ordering of the search results..
My SQL Query is
<B> select id,album_artist from catalog_details where id in (21,17,19,16) </B>
After the above SQL is executed , the results are displayed in the order of "ID" column ,
Something like.......
id album_artist
16 Completeness Cogs Art
17 Shah rukh
19 Completeness Cogs Art
21 kamal
but i want to preserve the order as i have given in the "IN" statement( i want order to be exactly as 21,17,19,16).
Is it possible to do it through the SQL Query itself.
I welcome ur suggesions
Bye
E.Faisal

Just order it the way you want after you retrieve the data.

Similar Messages

  • How to preserve order of photos imported from Aperture

    I've imported my Aperture library into LR.
    The process went generally fine, however I'm unable to figure out how to get the original image order.
    I was using custom ordering for Aperture's "projects" and "slideshows". Both got translated to collections, however the image order doesn't seem to be preserved. This is crucial feature for slideshows...
    Does the import plugin translate the Aperture order into the Lightroom "Custom Order" ?
    If not, what would be the suggested way to restore the proper image order in slideshows?

    When you select a collection the tool bar above the filmstrip lets you reverse the order by clicking the A/Z symbol. It also  has a drop-down menu to the right of sort. You can choose a number of options. But the beauty of collections is that you can drag thumbnails around into any order. They then remain fixed in your own user order. Useful for slideshows, web galleries etc.

  • How to preserve database user details before cloning

    Hi Experts,
    How to preserve database user details before cloning,
    I am cloning the test database with the prod database, so my concern is how to preserve the users details which they have in TEST database( like roles, privilges, profiles , passwords, etc.....). Because that all gone after cloning from PROD.
    Thanks
    Sam

    use the following script to take the backup of roles,pwd & other  details of DEV . after cloning  execute the scripts back in DEV to restore the old values....
    set head off
    set lines 200
    set pages 9999
    col owner for a20
    col db_link for a30
    col username for a15
    col host for a40
    col created for a12
    spool db_details.lst
    select * from global_name;
    select * from dba_db_links;
    select name from v$controlfile;
    select member from v$logfile;
    select file_name from dba_data_files;
    select file_name from dba_temp_files;
    spool off
    spool create_db_links.lst
    select 'create DATABASE LINK '||owner#||'.'||NAME|| ' connect to '|| userid || ' identified by '|| password || ' using '||''''|| host ||''''||'; ' FROM sys.link$ order by owner#;
    select username,user_id from dba_users where user_id in (select distinct owner# from link$);
    spool off
    spool alter_user.lst
    select ' alter user '||username||' identified by values ' || chr(39)||password||chr(39) || ';' from dba_users;
    spool off
    Set verify off
    Set space 0
    set feedback off;
    set echo off;
    set pages 1000;
    set lines 150;
    spool create_synonym.sql
    Select 'CREATE SYNONYM '||owner||'.'||synonym_name||' FOR '||table_owner||'.'||table_name||'@'||db_link||';' from dba_synonyms where db_link is not null and table_owner is not null;
    Select 'CREATE SYNONYM '||owner||'.'||synonym_name||' FOR '||table_name||'@'||db_link||';' from dba_synonyms where db_link is not null and table_owner is null;
    spool off;
    Spool profile.sql
    select ' alter user '||username||' profile '||PROFILE||';' from dba_users;
    spool off

  • How to preserve old dtd when using writetofile method

    Hi,
    I have one doubt.How to preserve the dtd of xmlfile before parsing it with the xml parser for pl/sql ,write this saved dtd to the document object and use to writofile method of the dom object.If this is possible then can anyone ,please give me suggestions.
    I illustrate the situation ,given below is the dtd of the file before parsing :-
    <!DOCTYPE family [
    <!ELEMENT family (member*)>
    <!ATTLIST family lastname CDATA #REQUIRED>
    <!ELEMENT member (#PCDATA)>
    <!ATTLIST member memberid ID #REQUIRED>
    <!ATTLIST member dad IDREF #IMPLIED>
    <!ATTLIST member mom IDREF #IMPLIED>
    ]>
    After parsing and using the writetofile method ,the dtd present below is the changed dtd of the new xml file.
    <!DOCTYPE family [
    <!ELEMENT member ANY>
    <!ATTLIST member memberid ID >
    ]>
    Can anyone say how to stop this.Any help would be great
    Regards
    gopal

    Hi, Kiran,
    As the others have said, the only way ^1^ to get the result set in any particular order is to use an ORDER BY clause.
    Here's the general way to do that in SQL in case of a UNION:
    WITH  union_results     AS
         select 'a' AS txt, 1 AS sort_key from DUAL
        union
         select 'd',        2             from DUAL
        union
         select 'b',        3           from DUAL
        union
         select 'c',        4           from dual
    SELECT    txt
    FROM       union_results
    ORDER BY  sort_key
    ;In SQL, you can only ORDER BY expressions that arei n the SELECT clause, so to avoid displaying sort_key, the sub-query is necessary. A lot of people don't use pure SQL for this; they have their front end hide the sort_key column. In SQL*Plus, for example, you can say COLUMN sort_key NOPRINT.
    ^1^ There is one exception, which does NOT apply to this case, or most others. CONNECT BY, even without ORDER BY, does impose a partial ordering.

  • LR 4 AVCHD support - how to preserve quality for future use?

    I was excited to see that LR 4 would support the AVCHD format, but I've run into a bit of a Catch-22.  I have a Panasonic Lumix GH2 that records very good video in AVCHD format, and previous to LR 4 I've had to use Final Cut Pro to import the video files from the SD card, which can be hard to remember to do (a dumb problem, but a real one).  So with LR 4 being able to import and work with AVCHD files, it's a step forward, but the question becomes how to preserve maximum qualtiy of the files for future, possibly professional, use.
    AVCHD is of course a compressed format, and so is h.264.  When I saw that one can export from LR 4 in "Original" format, I assumed it would be possible to establish a workflow wherein the files could be imported from the card into LR 4, then, if desired, exported (using "Original" format) and imported into Final Cut in Apple Pro Res format (minimal compression) for instance.
    But the problem is that Final Cut doesn't see anything valid in the directory structure that LR creates in its export process, whereas it does see valid files when it's pointed to the original files on the card.  Is it a simple problem of directory sturcture?
    I think there should be more professional export options for AVCHD files, such as Apple Pro Res, or an uncompressed format.  At the very least, there should be a simple and obvious workflow in which LR imports the files and, in copying the files from the card, creates the directory structure that apps such as Final Cut need in order to see the video files.
    Thanks

    Hi,
    DSS has inbuilt functionalities to compare the transactions against the in built rules.If the transactions take place not in accordance with the in-built rules,it is treated as a "violation" and is reporetd.
    Virsa is an example of DSS tool.Here you can build rules for access and process ;constantly compare the actuals Vs the rules;report the violations.
    In SAP R3 for example,the T/code:pfcg is tailored for access control,while the invoice parking [f-63] is tailored for process control.Using VIRSA,you can address to risks involved both,namely,access and process control.This is an example of how DSS can help in Risk integration.
    In these tools,we have an Engine for building the rules-based on this we build the rules.These rules are stored in a table.when a transaction-for which we have built a rule - takes place,the system compares the rules VS actuals.The inconsistencies if any are reported as violations.
    Hope this helps.
    Regards,
    Ramesh

  • How can i order a new printer head for my photoshop 7250e

    How can i order a new printer head for my photoshop 7250e  Is there a number i can ring to speak to someone or email address i can use or a web page where i can order one
    or a list of agents i can use to get it from
    Finding simple information seems impossible, no where does it mention spares or replacements 
    I have tried a lot of fault finding am convinced this is the problem  

    Hello NigelH1, 
    The Print Head for the Photosmart 7250  is not available outside HP.
    Please call HP Tech Support for further assistance.
    If you are in US , the toll free # is 1-800-474-6836 .
    If you are not in US , then log on to www.hp.com , at bottom-left corner there is a world map icon, click on it and then select the region you belong to, which would then provide support options for you for that region.
    Regards,
    Jabzi
    Give Kudos to say "thanks" by clicking on the "thumps Up icon" .
    Click "Accept as Solution" if it solved your problem, so others can find it.
    Although I am an HP employee, I am speaking for myself and not for HP.

  • How to use order by within Group by clause

    Hi All,
    I need a help as to how should i use the Order by clause so that the data should be in order with respect to one column, and at the same time whole data is grouped by some other column...like
    Select RaceNo,Venue,FP,BP from Race group by RaceNo
    Here I want to order by FP in ascending order for each group. When i am using it , whole order is changing.
    Can anybody suggest me how to use order by clause that would apply to each group of data.
    Thanks .

    order by clause should be used at the last in any query.......but in group by clause u can't use use that becoz u group according to column then no ordering is needed there......if u want to filter something then u can use having clause and later if u need to arrange then u can use order by clause.........
    i hope this eg.l gives u some clarification....
    e.g
    select deptno,count(empno)
    from dept
    group by deptno
    having count(empno) > 10
    order by deptno

  • How do I order a new SIM card for my Galaxy S3?

    How can I order a new SIM card for my Galaxy S3? My old SIM card was stolen, and I need to replace it in early January. My phone number has to stay the same . I'd appreciate any help you could give me.

    Call the customer service number or walk into any Corporate store and ask for one.

  • HT5525 How can I order more than one picture at a time in iphoto?

    How can I order more than one picture at a time in iphoto?

    It's also wise to crop the photos to the print size you're ordering so you have control over what portion of the image gets printed.  Otherwise, the image will be scaled so the smaller dimension fills the paper cropping off some of the oither dimension.
    OT

  • How do I order more than one book at a time?

    I created 10 photo books I would like to order, but when I go to place my order I can only place one book at a time.  I do not want to place 10 different orders.  How do I order more than one book at a time?

    You can't.  Only multiples of the same book can be ordered at a time.  Each individiual book must be ordered separately.
    OT

  • How can I order a calendar that I created in iPhoto 7.1.5, now incompatible with Apple Store.

    How can I order a calendar that I created in iPhoto 7.1.5 which is now incompatible with the Apple Store?  I am using a mac pro 1,1 which cannot upgrade to the new version of iPhoto.

    You could try to upgrade to an earlier iPhoto '11 version, since you are running Snowleopard.
    iPhoto '11 should still be available as part of the boxed retail version of iLife '11.
    Try to buy one at Amazon, then upgrade to iPhoto 9.2.x from the Support page:  http://support.apple.com/downloads/#iphoto%209.2

  • How do I order a replacement installation disc for an hp laptop?

    I have lost my installation disc for my HP Laptop.  It is a Windows Vista Home Premium DEMac: HP, the serial number is: {Personal Information Removed}.  I have a problem with the computer and the screen tells me to: 1. "Insert windows installation disc and restart the computer."  2. "Choose language settings, and then click next." 3. Click "Repair your computer."  How do I order a replacement disc?

    Hi,
    You have not read the above topic. Please call HP to order using a number near you:
    World wide support:
        http://welcome.hp.com/country/w1/en/contact_us.html
    In the US:
        http://www8.hp.com/us/en/contact-hp/phone-assist.html#section1
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How to change order unit in ME22n for particular vendor

    Dear All,
    We have defined ordering unit in material master as "L".
    For other vendors & new PO we get proper ord.unit display.
    But we r not getting in PO of particular vendor.
    How to get order unit in ME22n ? What is the relation of order unit with Vendor ?

    Hi
    Did you ordere the particular material for the vendor concerned already with different Order unit (SKU),  this might be the reason why you are not getting the ordering unit in PO while ordering. Did you maintain the details of conversion in master between SKU & Ordering unit,if yes, then check for Info Record for the material and vendor combination and in the Genaral Data Tab chek for the variable order unit activation if not available then activate it and if the system is asking the conversiondetails enter herr the conversion also. Now if you create PO you will be able to assigne the new order unit.
    Regards

  • How do I order a new hard drive 655-1402A or 661-6610?

    How do I order a new hard drive 655-1402A or 661-6610?

    For a new hard drive try Newegg.com http://www.newegg.com/Store/SubCategory.aspx?SubCategory=380&name=Laptop-Hard-Dr ives&Order=PRICE
    Or OWC for regular hard drives and SSDs  http://eshop.macsales.com/shop/hard-drives/2.5-Notebook/
    Here are instructions on replacing the hard drive in a MacBook with a removable battery. http://creativemac.digitalmedianet.com/articles/viewarticle.jsp?id=45088
    Here are video instructions on replacing the hard drive on the Aluminum Unibody
    http://eshop.macsales.com/installvideos/macbook_13_unibody/
    Here are video instructions on replacing the hard drive on the White Unibody http://eshop.macsales.com/installvideos/macbook_13_09_unibody_hd/
    To transfer your current hard drive I like the free application SuperDuper. It makes a bootable copy of everything on your hard drive http://www.shirt-pocket.com/SuperDuper/SuperDuperDescription.html  You'll need a cheap SATA external hard drive case. Put the new drive in the case then format and partition the new drive and clone your old drive to the new one. Check that it's set up right by booting up from the external drive. Then replace your old hard drive with the new one and put your old one in the external case.
    Here's a cheap SATA external hard drive case on Amazon http://www.amazon.com/Vantec-NexStar-2-5-Inch-External-Enclosure/dp/B002JQNXZC/r ef=pd_cp_pc_0

  • I want arabic and engilish keyboard in MacBook Pro with retina display how can i order that ??, i want arabic and engilish keyboard in MacBook Pro with retina display how can i order that ??

    i want arabic and engilish keyboard in MacBook Pro with retina display how can i order that ??, i want arabic and engilish keyboard in MacBook Pro with retina display how can i order that ??

    If you haven't found an answer yet. I know for a fact that this can be ordered directly from Apple at no extra cost
    You can either ask for this when buying a new MBP at a "physical" Apple store, or as in my case in the UK the online Apple store allows such keyboard configuration in addition to 3 other languages like Spanish, German and French

Maybe you are looking for

  • Completing an album from multiple sources

    A couple of times I have purchased a single track from an album with iTunes and then ended up buying the full album on CD - either because I bought the disc at a live gig or bought the album on discount from a store. When I do this, I find it difficu

  • Insufficient data for image (9-9.3) or a blank page (8.1)

    Hi, We recently started using a Xerox workcenter 5675 to scan document to my central server. About 3 days ago users started reporting an error message with a white page. I immediately checked the copier, nothing changed setting wise. It has been full

  • I need to reinstall iTunes 9 after uninstalling it on a power book g4 with os 10.4.11

    I need to reinstall iTunes 9 after uninstalling it on a power book g4 with os 10.4.11

  • Enhancements in me22n

    Hi,, I have changed  standard program using enhancement for me22n.. Requirement is : For all the users if there is no tick then the field appears editable and if there is a tick then it is disabled except few authorized users the fields appears edita

  • RBAC or Mailbox impersonation setting

    We use a product from Sherpa Software called Archive Attender to archive message content off to a different server and leave a stub in the message that allows the user to retrieve that content.  I have a user called Super that is a member of the doma