Column values split to multiple columns

Hello Everyone,
I know there is a way to do this below requirement. But please help me to sort out from this.
I've values likebelow
Subject
Qualifications
Philosophy 
PhD
Philosophy 
MPhil
Philosophy
MSC
Philosophy
AdvPGDip
economics
BEd
economics
PG
 But i need to generate output like this
Subject     Qualification1   Qualification2  Qualification3  Qualification4 
Philosophy  phd                  Mphil              Msc                 
AdvPGDip
economics   BEd                  PG
In original table  got more than 3000 qualifications but each subject have maximum 4 qulaifications only there is no order required means like qualification1 will have any either Phd,Mphil,msc, advPGdip from the qualification column for subject 'Philosophy'.
Kindest regard
A-ZSQL

generated that above structure with joining more tha15(almost i got 46 columns) table but when i follow above query for qalifications
I got output agein like this
Subject        qual1     qual2          qual3             qual 4
Philosophy    Phd       null            null               null
Philosophy    null       AdvDip        null               null
Philosophy    null       null            Msc                null
Philosophy    null       null           null                Mphil
How to merge all these rows into 1 row (46 columns rows all are same except these 4 qulaifications)
Thanks in Advance
A-ZSQL

Similar Messages

  • Get all the values from a multiple select in a multipart form

    Hi there!
    I am using a form with enctype="multipart/form-data" in order to upload files from the form.
    I have read this page: http://commons.apache.org/fileupload/using.html and everything works well for my form.
    The only problem is that I can't get all the values from a "multiple select" html object. I get only one value.
    Using servlets I have used this method:
    public java.lang.String[] getParameterValues(java.lang.String name) But now I have enctype="multipart/form-data" in my form and I can't use this way...
    Is there a way to get all the values of a multi-valued parameter?
    Thanks a lot!
    Stefano

    Hi
    I have got solution for this problem so, I am listing here logic
    assume tag name of html
    <select name="moption" multiple="multiple">
    iterate it in as
    String moption="";
    boolean cnt=true;
    while(itr.hasNext())
    FileItem fi=(FileItem)itr.next();
    if(fi.isFormField())
    if(fi.getFieldName().equals("moption"))
    if(cnt==true)
    moption=fi.getString();
    cnt=false;
    else
    moption=moption+","+fi.getString();
    If wants more help then mail me your problem
    at [email protected]
    Thanks!
    Anand Shankar
    Edited by: AnandShankar on 6 Nov, 2009 12:54 PM

  • BPM Process split, Or Split, Conditional, Multiple Gatways

    Hi
    I am New to this. Please explain what are these and when we use these (split, Or Split, Conditional, Multiple ) when developing a BPM Process. Also where we define rules in BPM

    The Studio documentation might help a little (download it from http://download.oracle.com/docs/cd/E13154_01/bpm/docs65/index.html -> click "PDF" beside the "BPM Studio Guide" link).
    At a high level, the Split activity speeds the process by allowing multiple parallel processing of an instance.
    The Or Split activity is similar to a Split but the Conditional transitions create the copies going through the circuit. Only if all of the Conditional transitions are false is the one Unconditional transition taken.
    The Multiple activity allows any number of instances to be created from a single instance using logic hit at runtime. This is useful in processes that must solicit information from a number of different sources and these sources may not be known until runtime (for example, collecting bids from multiple suppliers). Only one outgoing transition is allowed from a Mulitple activity. A Subflow activity is often used after a Mulitple, which enables you to send the copied instances to multiple processes depending upon the information you need to retrieve.
    All three of these must be paired with a Join activity. The Join activity rejoins the copies of the replicated instances with the original parent instance after they have completed the Split, Or Split or Multiple circuit
    The "Conditional" activity is similar to the traditional decision diamond that has been drawn on flow charts for years. Unlike the Split, Multiple and Or Split activities described above, the Conditional only has one instance flowing out of it via one transition at runtime. Typically in the process's design you might have a Conditional activity with an unconditional transition going to an activity downstream and a conditional transition going to another activity downstream. At runtime when the work item instance reaches the Conditional activity the work item instance either flows through the conditional transition (if it evaluates as true) or else the unconditional transition if the conditional transition evaluated as false.
    The key thing to remember is that coming out of a Conditional activity, the work item instance can only exit via one transition (one path). This is the different when work item instances leave a Split, Or Split or a Multiple activity. For these three gateway activities, copies of the work item instance can flow out of these activities via several paths concurrently.
    Hope this helps,
    Dan

  • Why does a mail-merge in MS Publisher split into multiple files when printed as a pdf file?

    Why does a mail-merge in MS Publisher split into multiple files when printed as a pdf file?

    'Cuz that's what mail merges do.  They create multiple documents based on the parent doc and all the names/addresses in your data tables.
    Perhaps if you describe exactly what you're trying to do & why you need PDF, we can point you to relevant tutorials.
    Nancy O.

  • Can I split to multiple monitors?

    I just bought a Mac Mini and I want to split out to multiple monitors.
    Preferably I want to go out with a VGA and DVI or 2 VGA's if possible. Can it split to multiple monitors?
    I am trying using a presentation program to send the signal to multiple wall monitors. Kinda like a hotel with the convention monitors...
    Thanks for any help!

    Welcome to the Apple Discussions!
    The new Mac mini has two video ports and supports using two displays at once. There is a mini-DisplayPort and an HDMI port. You will need the appropriate adapters for the two ports to convert the signals to either DVI or VGA. Apple and a number of 3rd party venders sell these adapters.
    Dah•veed

  • I use Exchange to sync my iphone4S with Outlook.  On my iphone, my contacts are split into multiple records if they have more than one email address - how can I consolidate them on the iphone

    i use Exchange to sync my iphone4S with Outlook.  On my iphone, my contacts are split into multiple records if they have more than one email address - how can I consolidate them on the iphone

    I have loaded my Firefox bookmarks into Internet Explorer Favorited. I also uninstalled Safari.
    I go to iTunes on my phone and see no wat to connect my iPhone to my laptop. I see Music, Shows, etc., the kind of stuff I would expect, but no clue as to how to proceed.
    Would you please be so kind to fill me in on how to "That syncing is done via iTunes. Connect the device to iTunes, select it, then go to the Summary page and select to sync bookmarks."?
    I am not sure what you mean by "Summary Page"
    Thank you

  • Select MULTIPLE default values for a multiple selection list box based on another field in Infopath 2010

    Hello there - Before I explain my issue, I would like to point out that I have reviewed some other discussions on selecting default values for multiple selection listbox. But my issue is specific and different, and not answered by any of the discussions
    I visited.
    I have a multiple selection list box (say for example all countries in the world as values), and I would like to pre-select or setup multiple default values (say five countries) based on some criteria that I query from MS SQL database table.
    I know we can go to Data | Default Values option to setup one or many default values for multiple selection list box. When I enter the default values manually this works. I also right click the field under the Multiple-Selection List Box group, then select
    Add another Value Below and set the Default Value for this field to setup multiple default values.
    However, if I reference a field (either an infopath field or a field from SQL database) I am not able to setup multiple default values. Infopath automatically selects the last field I selected for all instances and in the end I am able to see only one
    default value selected instead of many. How to fix this problem? Why would infopath allow multiple default values when we enter it manually but not when we reference some fields?
    Please let me know if you need more info. Appreciate your help.
    Thanks!

    Hi redhotc,
    According to your description, my understanding is that you want to set multiple default values for a multiple checkbox list in InfoPath form.
    I did a test with SQL database table. I set three default values for the checkbox list by adding three values field under the group field(Data->Default values), each value field is for a default value. Then publish it to my SharePoint site, everything
    was fine.Please have a try as the below link:
    http://www.bizsupportonline.net/infopath2010/pre-select-items-multiple-selection-list-box-infopath-2010.htm
    Note: if you are using SQL databse table, you may need to enable ‘Allow cross-domain data access for user form templates that use connection settings in a data connection file’ in CA. More information, please refer to:
    http://answers.flyppdevportal.com/categories/sharepoint2010/sharepoint2010customization.aspx?ID=418b9423-a96c-4e5e-91f9-6a1b010ebb69
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • I am using  MacBook Pro and running 10.8.4. iTunes version 11.0.4. Several of the cd's i have imported recently have been split into multiple albums by ITunes. How do I bring all the bonus tracks together with the original album?

    I am using a MacBook Pro and running 10.8.4. iTunes version 11.0.4. Several of the cd's i have imported recently have been split into multiple albums by iTunes where it has identified bonus tracks. How do I bring all the bonus tracks together with the original album?

    Hello there, Fineshot.
    The following Knowledge Base article might provide some information that should help you resolve the issue you're having:
    Why aren't songs with the same album art grouped together?
    http://support.apple.com/kb/TS1468
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro D.

  • Single Class Split Over multiple non-consecutive Days??

    How do I setup in OLM  a class split over multiple days for Example:
    I have a Diversity Awareness Course and Offering. The Class is 2 days long, but not on consecutive days, they are a week apart.
    Do I create a Day1 Class and Day2 class under the same course and make it a prerequisite to attend day 1?
    From a reporting point of view this now shows as 2 classes when it is only 1; inflating the class figures.
    Or Can I split it into 2 sessions under the same class?
    What is the best way to do this?

    Hi!
    You can create a Class with two Sessions underneath it (one for each day).  Make the Start Date for the Class the day the Class begins and set the End Date to correspond to the last day.  Your Duration should be set to 2 Days.  Learners will be able to view details for each session, and you can assign different instructors and rooms for each day if you use Resource Bookings in OLM.
    Anne
    Anne Saulnier | Synergy Codeworks LLC
    [email protected]
    603-864-9942

  • Hello  can you please advise how to split a multiple VCF card (that includes 1000s of indivudual cards)

    hello 
    i am using MCbackup on my iphone4 and did backup all my contacts into 1 single VCF card (consisting of 1000s individual vcf cards)
    can you please advise how to split a multiple VCF card (that includes 1000s of indivudual cards) in order to save them in outlook 2007 as backup thanks

    This is more related to Office issue, I’d like to suggest you post this issue to Office forum. 
    Here is the link: http://support.microsoft.com/gp/gp_newsgroups_master
    ***Don't forget to mark helpful or answer***
    **Note:(My posts are provided “AS IS” without warranty of any kind)

  • Column Values Split

    LTRIM(RTRIM(C2.CLMTEL)) AS LossCause,(SELECT DISTINCT C20.CLAIM,PL.CLMTEL,C20.POLICY FROM ClaimTable CROSS APPLY dbo.udf_ParseLossCode(C20.CLMTEL) C2
    I have a Column "CLMTEL" with  Data  like 'C6F3G7' and I am splitting this Column to 'C6'  through a Table Valued Function as this is a Valid 2 Character String . Issue here is When CLMTEL is Blank , another Column Data needs to be
    populated but even that Column needs to be parsed as Data in this Column is '00C4', '4C00','6C5G' and only 2 Characters need to be populated with in the Column. I have a Table Valued Function for extracting first Column Data but not able to extract Data for
    the second Column .Thanks 
    Srikanth

    sounds like this to me?
    COALESCE(NULLIF(LTRIM(RTRIM(C2.CLMTEL)),''),f.Val) AS LossCause,
    (SELECT DISTINCT C20.CLAIM,PL.CLMTEL,C20.POLICY FROM ClaimTable CROSS APPLY dbo.udf_ParseLossCode(C20.CLMTEL) C2
    CROSS APPLY dbo.ParseValues([Data],',')f
    ParseValues can be found here
    http://visakhm.blogspot.in/2010/02/parsing-delimited-string.html
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Displaying single value (Record) into multiple columns

    Hi All,
    I want to display the single record into multiple columns. Please let me know How to achieve this..
    Record:
    Lvl Activity Acre
    6 Week 4 (Same value to be displayed into 3 columns.)
    REquired output:
    lvl Activity PH1 PH2 PH3
    6 Week 4 4 4
    Thanks
    Kavi

    user533671 wrote:
    Hi,
    Thanks for immediate reply.
    PH1, PH2, PH3, ... will go more columns based on parameter , what we are passing.An single SQL statement cannot have a dynamic number of columns based on the data itself. The projection (columns returned) have to be known before any data is fetched... and that includes some 'parameter' value.
    {thread:id=2309172}
    You can build a query dynamically, based on a parameter or even on the data, but 99 times out 100 people use dynamic queries where they are not needed.
    Perhaps explain to us what you are really trying to achieve and why, and we could suggest some better way.

  • How to get values from a multiple drop-down box.

    On my first page, I have a multiple drop-down box as the following code.
    <select name="selInterMethod" class="textbox" multiple>
    <option selected value="CH">Chicago</option>
    <option value="NY">New York</option>
    <option value="SF">San Francisco</option>
    </select>
    On my second transaction page, I need to save "CH-NY" into my Database column: city if the user selected Chicago and New York.
    How can I accomplish this in JSP?
    Thanks for your help.

    I figured out the solution. Here it is. FYI
    String inter_method = "";
    String Inter_Method[]=request.getParameterValues("selInterMethod");
         if( Inter_Method.length > 0 ) {
              for (int i = 0; i < Inter_Method.length; i++) {
                   inter_method = inter_method + '-' +Inter_Method;
              inter_method = inter_method.substring(1,inter_method.length());
              System.out.println("trx inter_method = " + inter_method);

  • How to copy values in a multiple block based on conditions....

    hi
    i have a multiple block having 5 records and 10 columns...what i want to do is that
    when i am in the 2 record and if the values in the 2 to 5th column is same when compared with the values of the same column in 1st record....copy the values of columns 6 to 9 in 1 record to 2nd record...the same some times i may need to do with 3 and 2nd record when i am in 3 rd record...etc...like to the rest records...
    pls help
    Kris

    Create a POST-TEXT-ITEM trigger on column 2 to 5 that calls the same procedure (A).
    Create a procedure A
    with the following logic
    - remember the current record (incl. contents of column 2 to 5) (name new-record)
    - go to first record
      while continue loop
        if new-record.column2 = this-record.column2 (and that also for 3, 4 and 5)
        then
            new.record.column6 := his-record.column6 (and that also for 7,8,9 and 10)
            continue := false;
        end if;
        continue :=  ( this-record = last-record )
        if continue
        then
          next record
        end if;
      end loop

  • PATH() issue - The Value 'Val123' has multiple values

    Im using PATH() to get a flattened hierarchy. I keep getting the following error:
    Calculation error in column 'Detail'[]: Each value in 'Detail'[UniqueID] must have the same value in 'Detail'[ParentTest]. The value 'A00012:A123' has multiple values.
    I know with 100% certainty that there are not multiple values for A00012:A123.
    I have also copied the data ( from the powerpivot Designer) to another workbook and cannot reproduce the issue. 
    Can anyone advise what might be going on here? Im using Excel 2010 32bit, if its any use. If i can supply any further information please let me know.
    Thanks

    I found the issue. In a seperate set of rows there was a duplicate. the rows had nothing to do with the rows that were actually mentioned in the error message. so a cause has been identified.
    Thanks

Maybe you are looking for

  • Standard SAP Document Type DB (Dummy Purchase Order)

    Hello fellow experts! I have seen this PO document type at previous clients and was wondering what the intended use is?  I know this was not customer-specific because I had seen it at several client sites (using 4.6c and 4.7).  It looks like my curre

  • Licensing for Windows Virtual Desktops (VDI) - do I need Virtual Desktop Access (VDA) licenses?

    Hello.  I am trying to figure out what type of licenses I need to achieve the following: - Windows Server 2008 R2 running Hyper-V - 25 virtual desktop on Hyper-V running Windows 7 Professional Do I need a "full" license of Windows 7 Professional for

  • Barcode decoder invocation error

    Hello everybody, I had a problem with decoding / invoking barcoded forms service. After copying pdf (or .tif) file to the input folder of newly created watched folder I get the below failure exception: Failure Time----Mon Jan 14 18:12:59 EET 2008 sou

  • How to password protect a page or a file

    Hello All, Please help me, Can you please let me know how can i Password Protect a page (or) a file which i have created using the Oracle Portal, i am working on 10.1.2 Version. I would be thankful to you if you can provide me any sample URL's Regard

  • Are there any xml parsers better than xerces?

    hi, I need to find an efficient parser for my project. I am currently using the Xerces1.4.4 parser from Apache. Are there any xml parsers better than xerces? Do I need to change any code if I switch to a new parser? Thanks!!!