Data merge from two columns

Hello all,
We have a requirement that we need to combine data from two columns. We have comments1 field in TABLE A and comments2 and comments3 fields in a TABLE B. The the report has a condition:
Begin
If status = 'Pre-Award' then
Print comments1 from TABLE A;
ELSIF
status = 'Post-Award' then
Print comments2 and comments3 from TABLE B;
END IF
END
Tools version: Oracle reports version 6i.
Thanks in advance.
Arun.

There's a couple of ways to do this.
One way would be to create a placeholder column for your comments.
The create a function (much like what you have already listed) to determine which comments to use and place the value of that comment into your placeholder column. You can then use it in that group just as you would any other field.
Chad

Similar Messages

  • From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    Hi,
    Use NVL or COALESCE:
    NVL (col_a, col_b)
    Returns col_a if col_a is not NULL; otherwise, it returns col_b.
    Col_a and col_b must have similar (if not identical) datatypes; for example, if col_a is a DATE, then col_b can be another DATE or it can be a TIMESTAMP, but it can't be a VARCHAR2.
    For more about NVL and COALESCE, see the SQL Language manual: http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions119.htm#sthref1310
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • How to modify the VB examples in ni-scope to sample data simultaneously from two channels in PCI 5922?

     Dear all:
    I want to write VB programs to sample data simultaneously from two channels in PCI 5922. The niscope driver has some example VB programs to sample data from one channel, for example, the "save to file ", the program works well to sample the data from one channel.  When I modify it to sample data simultaneously from two channels, I always get error so I seek your help on how to write the program to sample two channels simulatenously. Thanks.  I attached the sample program here and what I tried to modify is the "channel name" and "waveform()"
    Regards
    Andy
    Attachments:
    savetofile.doc ‏42 KB

    Hi Bajaf, regarding the FFT of the four channels, the next link might be what your looking for:
    http://digital.ni.com/public.nsf/allkb/862567530005f09c8625671b00739970
    Respect the phase issue how are you doing the acquisition of the signals, are you doing two independent acquisitions? if you are controlling them as independent acquisitions try to synchronize them with triggers and the clock.
    How much are they out of phase?
    By the way we know have forums in Spanish
    Best Regards
    Benjamin C
    Senior Systems Engineer // CLA // CLED // CTD

  • Retrieve of data from two columns into one column

    For eg: i have a data in a table with columns A & B of same size
    A B
    1 2
    2
    3 1
    4 2
    5 3
    6 5
    7 1
    8 4
    9
    10 8
    Through a select i want the output of my data in one single
    columns, Well I can do this by using union.
    But my output should be like
    if I select by condition where A=2
    my output should be
    2
    1
    3
    7
    4
    because all these numbers are linked with 2 how do i do this
    because it is like searching the number 2 in two columns and wherever this number 2 is linked i should get all the data relevant to it.
    Hope u got my point what i exactly want
    Can anyone help me it is quite urgent.
    Regards
    Vamsi Mohan

    i do not a concatenated data
    i have a data in a table with columns A & B of same size
    A B
    1 2
    2
    3 1
    4 2
    5 3
    6 5
    7 1
    8 4
    9
    10 8
    if my where condition is 'where A=2'
    my output should be
    1
    2
    3
    4
    5
    6
    8
    10
    i want my query to search as loop so that it keeps on searching
    for related data as in my case it is
    2 is linked to 1
    1 is linked to 3
    3 is linked to 4
    my query should keep on seaching for linked numbers till
    it does not find any mathing linked numbers
    and the resulted output should come in one single column

  • Webi Report Data compare between two columns

    There is two different queries in Webi Report BI 4.1
    Query 1 - Name_1 == 100 records
    Query 2 - Name_2 == 75 records
    On the report need to compare the data between Name_1 and Name_2.
    Need report level flag as a second column
    name_1 = name_2 = Y
    name_1 <> name_2 = N
    One the report there is only two columns Name_1 Flag(Y/N)
    1. If statement is not working at all in this scenario
    2. Merge dimension is not useful since I need to treat these columns separately on the report.

    Hi Suri,
    As the objects belong to two different queries, the comparison might not work as they are not merged and incompatible.
    You can try creating a seperate query and can use subquery in it.
    For example:
    SELECT NAME_1 FROM QUERY_1
    WHERE
    NAME_1 NOT IN (SELECT NAME_1 FROM QUERY_2)
    This will display the names which are not common.
    Hope it will help.
    Regards,
    Yuvraj

  • How to run data merge from external hard drive?

    I attempting to merge a large document (~4,000 records) in CS3. The document that I'm merging the data into is also large (an 8 page newsletter). I have exported the pages of the document as a PDF and the imported them again (therefore minimizing the data/links/etc.) but the amount of memory it was consuming was still crashing the program when I ran it on my computer. I bought a TB external hard drive and would like to run the merge from there so that it is using that memory/RAM instead of my computer's. I moved the indesign file, all the pdf links, and the .csv file that is the data source to the external hard drive. That didn't solve the problem. Is the merge now running from the external hard drive and still not working or is there something further I need to be doing to get InDesign using the external hard drive memory instead of my computer's memory? Any advice would be wonderful, thanks!

    I attempting to merge a large document (~4,000 records) in CS3. The document that I'm merging the data into is also large (an 8 page newsletter). I have exported the pages of the document as a PDF and the imported them again (therefore minimizing the data/links/etc.) but the amount of memory it was consuming was still crashing the program when I ran it on my computer. I bought a TB external hard drive and would like to run the merge from there so that it is using that memory/RAM instead of my computer's. I moved the indesign file, all the pdf links, and the .csv file that is the data source to the external hard drive. That didn't solve the problem. Is the merge now running from the external hard drive and still not working or is there something further I need to be doing to get InDesign using the external hard drive memory instead of my computer's memory? Any advice would be wonderful, thanks!

  • Help with data merge from Excel

    I think it's easiest to first explain the project...
    I am working on a print project that has an excel file containing specific data per person. The data gives FirstName, LastName, Picture, About, Phone, etc. per person (over 100 people) I am making a 3 page InDesign template to generate each persons info.
    The problem is the About column of data. The about column contains 2-3 paragraphs of text per cell. These paragraphs need to be formatted as separate paragraphs so that I do not have 1 continuous line of text. When I import the csv or txt (doesn't matter which way I save out the file) InDesign is not reading those paragraph breaks properly and all data after the first cell of About data is missing when I preview. If I remove the spaces in the About cell data it works perfectly.
    I know large spaces in comma delimited data often cause problems (I work in prepress) and we usually remove all extra spaces from cells, but in this instance I need these spaces AND I need them to format properly in my InDesign template. Any ideas or suggestions would be greatly appreciated, and will likely save me a great deal of work.
    I am using CS2.
    Thanks,
    Patty

    I did get your email, and as I posted above, I think Ken's suggestion to use the Rorohiko plugin will be more satisfactory than trying to completely rework your data file (though I don't have a complete picture of the file structure based on the PDF).
    In order to get threaded text you must either flow it in as threaded text, or combine the separate frames. Since the plugin will do the latter in a matter of moments, and preparing the text file for autoflow if it needs major revision or is of any great length could take considerably longer (plus you will then need to run multiple find/change operations to re-format the specially prepared text), I didn't pursue asking for a sample of the data file.
    Should you decide you want to modify the data, you will need to do something like move it into Excel, then most likely concatenate all of the fields that need to remain on a single line (using a special separation character (~, %, ! or other symbol that doesn't otherwise appear anywhere in your data that you can later change to a tab), leaving yourself with only cells for each individual line, and save as tab delimited text. This should give you a text file that looks like:
    Line1 (tab) line2 (tab) line3 (tab) line4
    Line1 (tab) line2 (tab) line3 (tab) line4
    Line1 (tab) line2 (tab) line3 (tab) line4
    Line1 (tab) line2 (tab) line3 (tab) line4
    Place the text file, then run a find change to convert tabs to forced line breaks (not end of paragraph), another to convert forced line breaks immediately followed by paragraph ends (or blank space if that's how it comes in -- I haven't tested to see what an empty cell looks like) to just paragraph ends to eliminate blank lines (I suppose you might also have blank lines in the middle, which would mean running a find change for consecutive forced line breaks with nothing between), and finally one to change your special joiner character to a tab.
    This structure will allow you to use a nested paragraph style to format the different pieces of the directory in one operation, but as you can see it's fairly complicated to execute.
    Peter

  • Data fetch from two table without refresh

    hi Friends,
    I have a problem i want to extract data from two table without refresh into text field when i'll enter any value in a text field then corressponding value should come in to corressponding textfield.
    eg. there two table A and B.
    Table A has Colunm
    s_id Number;
    c_id Varchar2(30);
    sec varchar2(4);
    Second Table B Colunm Name
    s_id Number;
    f_name varchar(30);
    l_name varchar(20);
    when i enter s_id 101 in a text field then the c_id ,sec,first_name and last_name should come in to corressponding text fields without refresh.
    How Can I do this.
    Thanks
    Manoj

    Hi Manoj,
    You have to make an Ajax call to display data without refreshing the page. Search this forum for Ajax and you can find lots of related posts. This link might help too. http://www.dba-oracle.com/t_html_db_apex_ajax_application_express.htm
    Thanks,
    Manish.

  • Can we create a BAM data Object from two tables

    Hi ,
    I want to pull the data from two tables and create a BAM data object, Is it possible in BAM?
    Do the needful
    Regards,
    Francis

    The sample way is using AQ on database. You can create a database view to join the tables. And create AQ on the view, create a ems to listen on the queue.

  • Data Merge From different soruces

    We have scenarion where MDM is going to sned the two data set through two different syndication map - Product-Release (PR) and Release (R). These two messages needs to be merged based on the Release Number exisiting in both the message to form the final target message. I am planning to use BPM for this, but wanted to check if anything which I have missed in this. I think it is possible to merge two messages into one based on some identifier (ReleaseNumber) through co-relationID. Any input or validation would be helpful.
    Thanks,
    Samir

    Yes. You must use BPM and you must use correalation. Based on that, you have execute the transformation 2 to 1 type and send.
    VJ

  • Merging from Two files to One

    Dear All,
    I am doing a scenario where in the files are coming from two different sources.Also the fields in both the files are same  say
    File1 has 4 fields and file2 has 4 fields.But there will be a difference in one field.
    File1 : a,b,c,d
    File2:  a,b,f,d
    The result file will be the combination of the one different field like ( C and f ) in this case. So my target file will be a b c f d.
    I am using BPM with co-relation for this scenaio but i have an issue in message mapping. Do i need to go in for multi mapping or do i need to write a UDF / ABAP mapping to club the message based on the field.
    Please provide your inputs on the same.

    but i have an issue in message mapping
    Could you tell us your issue??

  • Flowing text from two column master pages

    I'm trying to create a document with a two column master page using  two separate text boxes rather than a text box with 2 columns. When I flow the text into page 1 of the document it autoflows and creates the rest of the pages automatically but uses a page wide single column rather than the 2 columns I have on my master page. How can I make it create the new pages with the two columns on them? This is CS4.

    I need to know EXACTLY what you've set up and how you are flowing the text before I can tell you what's going wrong.
    Do you have a master text frame or frames? Did you override the master frame before placing the text? Are there column guides on the master page? Some screen captures might help, too. You can embed them in a post by clciking on the camera icon on the web page:

  • Blank page showing when changing from two column to one column pages

    This is the scenario:
    Document with two master pages - Page1 has two content areas - left column and right column, Page 2 has one content area the full page width named 'FullPage'
    One page set named PageSetOne - with multiple subforms, each with Pagination setting of Following Previous and Continue filling parent.
    Second page set named PageSetTwo - this has a single subform with Pagination setting of place on Page2. The child subform has itself a subform with Pagination setting of Place in Content Area 'FullPage'.
         This page set is initially set to be Hidden.
    Third page set named PageSetThree - this has a single subform with Pagination setting of place in Page 1 and a child subform with Pagination setting of Following Previous.
    [Obviously I am simplifying names and content here].
    The problem is this: when in design mode, there is a blank page showing at the end of the document whenever there are sufficient subforms in PageSetOne such that subforms are displayed in the right hand column.
    When subforms are removed so that nothing is showing in the right hand column then the blank page goes away.
    I have put a marker subform immediately after the last subform in PageSetThree and can see that the blank page is showing after this.
    Also, the following problem:
         When in preview mode, the extra blank page at the end does not display (which is good)
         BUT if the hidden PageSetTwo is made to be visible AND there is content showing in the right hand column prior to it,
         THEN a blank page is displayed just before the newly displayed PageSetTwo page (a single column page on Master page Page2).
    I have tried every combination of Pagination Place before and after settings and can find no way to avoid the blank pages.
    Does anyone have a clue as to what is going on and how I can avoid these blanks showing up?

    I have finally managed to solve this problem.
    The issue was not a subform extending too far out, it was a pagination setting, as Niall suggested.
    I created a blank document to analyse the issue closely, and lo, my new blank doc with all default settings, worked perfectly.
    So I revisited my forms and compared the pagination settings subform by subform.
    This is what I had to change to ensure that all pages flowed with no extras:
    PageSetOne (which is supposed to show using the two column master)
    set the top page Place = ‘In Content Area Leftcolumn’ and After=Continue filling parent
    All child subforms each with Pagination setting of Following Previous and Continue filling parent.
    PageSetTwo (to show in the full page column Master)
    set the top page Place = ‘In Content Area FullPage’ and After=Continue filling parent
    All child subforms each with Pagination setting of Following Previous and Continue filling parent.
    PageSetThree ( back to two column master)
    set the top page Place = ‘On Page1’ and After=Continue filling parent
    All child subforms each with Pagination setting of Following Previous and Continue filling parent.
    I discovered that the critical setting was for PageSetOne. The After setting needed to be Continue filling Parent
    Once I had those settings in order then the form performed as required.
    This has been a frustrating learning experience but at least ultimately successful.
    AJ

  • How to display data based on two columns in Apex calendar?

    I have a table for holiday details with 2 date columns...from-date and a to-date. I need to display the name of the person for the date range they have specified. For Ex if i applied for leaves from may 1 to may 4...the calendar should display my name for 4 dates i.e may1,2,3 and 4
    I am new user in apex and still trying new things. Please help me achieve this.

    Swetha
    I created an application using Apex. It is a calendar application to show events that are happening. I ran into an issue with it
    If there is an event that occurs during an interval like August15 - August22, the event is shown only on August15, which is the first day of the event. I would like to show it in all days from August15-22.
    Here are the items coming from the page
    event_id number,
    employee_id number
    date_from date,
    date_to date,
    due_date date,
    act_id number,
    act_loc varchar2,
    reminder varchar2,
    frequency varchar2,
    division varchar2,
    event_status varchar2
    I am looking to write a process / procedure where it can show the same event on all the days it is occurring
    Thanks in advance
    Latha

  • Splitting data up into two columns

    Apologies if this is covered previously ( i'm sure it probably is) i've imported .csv into numbers but the first cell contains two pieces of information separated by a space (TI NUMEROLOGY etc) how do I separate into two cells so I can sort data by the different identifers (TI = Title)
    IB 1859060196
    BI PAPERBACK
    AU SHINE
    BC VXFN
    CO UK
    PD 19990923
    NP 128
    RP 9.99
    RI 9.99
    RE 9.99
    PU CONNECTIONS BOOK PUBLISHING
    YP 1999
    TI NUMEROLOGY
    TI YOUR CHARACTER AND FUTURE REVEALED IN NUMBERS
    EA 9781859060193
    RF R
    SG 2
    GC M01
    DE A unique step-by-step visual approach to numerology
    DE characters and compatibility from names and birth dates.

    Hi Alan,
    Another thought. You can sort the data as it is. Click on Reorganize button on the ToolBar:
    To get:
    Every cell starting with TI and a space will come together, and sorted by whatever follows TI and a space.
    However, if it looks nicer to split the entries, use Badunit's formula.
    Alan wrote: "I also clicked on C2 and went to insert/fill/ but the options are greyed out o I can'r apply to all unless I do it manually... and it's a mahoosive file."
      To fill down, click on C2 then drag the white handle down. Or, select the rows that you want to fill before Insert > Fill (Numbers needs to know how far to fill).
    Ian.

Maybe you are looking for

  • Java studio enterprise licensing

    Hello, Anybody know in which condition sun java studio enterprise can be used to develop open source applications? I post this question because I asked the sun licensing center (email to [email protected]) but it seems than nobody know the answer to

  • Can't forward request from Apache to Tomcat on second instance

    Hi, I am trying to create 2 separate environments (dev and test) on one powerful Unix server which has 2 network cards, 2 IP addresses, 2 server names... Using Apache 2.0.43 and Tomcat 4.1.29/JBoss 3.0.7, mod_jk 2.0.43 on Solaris 9, Intranet environm

  • InvalidSecurity Exception in WS and SOAP with Attachment

    Hi all, <bR> <br> I created a EJB based webservice with the following signature:      <br><br> public String businessMethod2(byte[] arg1) {..}<br> <br> <br> This Method is exposed as webservice, which is configured as SOAP with Attachment. <br> All s

  • PDFMaker font problem

    Can anyone offer any advice on how to debug a font problem? I am using a (shareware) symbol font on my Windows XP system. It works great in FrameMaker, and comes out perfectly in Frame-generated PDF files. Unfortunately, I also have to convert Excel

  • I had too reinstall my windows and have lost 1000.00 worth of music

    what good is this i cloud after reinstaling windows i losyt all my i tunes music and video id purchased theyr not even in the cloud