Is there a way to combine their results of the query in a single function

I have a bunch of functions that return a query:

< cffunction = access "getDeals" name = "remote" returntype = "query" >
< cffunction = access "getDeals2" name = "remote" returntype = "query" >

is there a way to combine their results of the query in a single function that returns a structure of different results?

Uh, it is probably more suited to a table - effectively turning it into a list of queries. Then you loop the array and each output.

I use a similar approach in the creation of the system of the user messages. Most of my functions that are called do their part, then at the end call another function, I called 'messages '. This function takes all what my function sends and adds it to a message board.

Keeps me out of a long list of messages - because I could call several functions at the same time. If I have just the output of a message of each function, each would crush the other. So, I'd get one message at a time.

Immediately after that he was released, I will destroy it then the message table so that messages are not kept inside.

Mikey.

Tags: ColdFusion

Similar Questions

  • Combine two results of the query with rank

    Dear all,

    I'm an analyst working DB for the first time:

    I have two requests:
    1)
    Select * (select 'CAFNo', 'ActionDate', 'ActionDetail', rank() on rnk (partition by order of 'CAFNo' through 'ActionDate'),
    of 'ABC '.
    where 'ActionDetail '.
    as 'FIU successfully presented and routed to the fulfillment team %')
    where rnk = 1

    Results in
    CAFNo', 'ActionDate1', 'ActionDetail '.

    2)
    Select * (select rank() on rnk (partition by order of "CAFNo" by "ActionDate"), 'CAFNo', 'ActionDate', 'ActionDetail'
    of 'ABC '.
    where 'ActionDetail '.
    like '% customer ID %')
    where rnk = 1

    Results in
    CAFNo', 'ActionDate2', 'ActionDetail '.
    ---------------------------------------------------------------------
    I would like to combine the results of two as:
    No College, Actiondate1, actiondate2, ActionDetail

    I tried the full outer join and other options but without success. Help, please
    Please share concept to join the two results not the actual query.
    with t as (
               select  "CAFNo",
                       "ActionDate",
                       "ActionDetail",
                       case
                         when "ActionDetail" like '%Customer ID%' then 2
                         else 1
                       end weight,
                       rank() over(
                                   partition by "CAFNo",
                                                 case
                                                   when "ActionDetail" like '%Customer ID%' then 2
                                                   else 1
                                                 end
                                   order by "ActionDate"
                                  ) rnk
                 from  "ABC"
                 where "ActionDetail" like '%Customer ID%'
                    or "ActionDetail" like 'CRF successfully submitted and routed to Fulfillment Team%'
              )
    select  "CAFNo",
            max(
                case weight
                  when 1 then "ActionDate"
                end
               ) "ActionDate1",
            max(
                case weight
                  when 2 then "ActionDate"
                end
               ) "ActionDate2",
            max(
                case weight
                  when 1 then "ActionDetail"
                end
               ) "ActionDetail1",
            max(
                case weight
                  when 2 then "ActionDetail"
                end
               ) "ActionDetail2"
      from  t
      where rnk = 1
      group by "CAFNo"
    /
    

    SY.

  • The right way to store the results of the query

    Hey wizards Oracle,.

    I have a few questions that take a long time to run. Given that the results of these queries change only once a day, I will execute queries every morning and store their results in a table.

    I was going to serialize them in chains to the CSV format and then store them as CLOB. But shit, Oracle is a data table, storage system! This is reinventing the wheel within a wheel.
    Then I thought about creating one table per query would be the right way to store their results. But ordinary tables data recovery would be slow, because I would need to create an additional of ORDER_BY column to maintain the order of the results of the query.

    It seems that there is a way to store varrays in the LOB columns, but it does not seem to be appropriate.
    There may be a caching mechanism that could help?

    Does anyone know the proper way to store the result of a query?

    What you describe is a reinvention of the materialized views.
    Have you considered using them?

    ----------
    Sybrand Bakker
    Senior Oracle DBA

  • I changed my password to get into my phone and I don't remember, I can get by using the contact ID, but I don't remember the password. Is there a way to change this without typing the former in?

    I changed my password to get into my phone and I don't remember, I can get by using the contact ID, but I don't remember the password. Is there a way to change this without typing the former in?

    N ° you'll need to restore your iPhone:

    If you have forgotten the password for your iPhone, iPad or iPod touch, or your device is disabled - Apple supports

  • I lost the product key for Windows XP. I want to reinstall the operating system on my computer. Is there a way by which I can regenerate the key?

    How to regenerate XP product key

    I lost the product key for Windows XP. I want to reinstall the operating system on my computer. I have the CD and the product has been registered with Microsoft. Is there a way by which I can regenerate the key.

    http://www.magicaljellybean.com/KeyFinder/

    Tricky

  • I backed up my files and then did a reinstall. Watch winmail.fol backup but not the eml files. Is there a way to retrieve my emails via the winmail.fol files?

    I backed up my files and then did a reinstall. Watch winmail.fol backup but not the eml files. Is there a way to retrieve my emails via the winmail.fol files?

    Hello

    ·          What program did you use to back up files?

    Here are two ways to restore the saved messages:

    Step 1: Before you start Windows Mail, copy the folder saved in C:\Users\username\AppData\Local\Microsoft\Windows mail storage folder.

    Step 2: Start Windows Mail and import messages in the backup storage folder.

    http://Windows.Microsoft.com/en-us/Windows-Vista/import-messages-to-Windows-mail-from-other-e-mail-programs

  • Is blackBerry smartphones there a way to delete an icon on the desktop?

    Is there a way to delete an icon on the desktop. I have downloaded twice and I would like to remove one. I know you can hide but how about withdrawal? 1st post here and love my curve!

    Thxs for all help you!

    Hello

    Go to the ADVANCED OPTIONS OPTIONS APPLICATIONS highlight Crackberry MENU KEY DELETE.

    Turn off the phone and turn it back on.

    Please do not hesitate to request information of morre,.

    If this answers your question please solve the message using the green check mark in the post that answered your question.

    Thank you

  • Is there one way other than to_char to get the month of the date field

    Is there one way other than to_char to get the month of the date field

    Hello

    raj4tech wrote:

    Is there one way other than to_char to get the month of the date field

    EXTRACT is one:

    SELECT INTERESTED (SYSDATE MONTHS) AS curr_month

    DOUBLE;

  • Hi so I bought photoshop elements 14 but I got the version of windows and I'm on mac, so is there a way I can just switch to the mac version? I don't want to buy it twice obviously

    Hi so I bought photoshop elements 14 but I got the version of windows and I'm on mac, so is there a way I can just switch to the mac version? I'm too lazy buy twice of course.

    No need to buy again, you can exchange the product for the Mac platform.

    Exchange a product Adobe of a different version of the language or platform

  • Is there a way to re set Lightroom to the original settings, I've been playing with it and got somewhere that I don't know how to get out of... not particularly computer savvu

    Is there a way to re set Lightroom to the original settings, I was playing with it and has gotten, somewhere, I don't know how to get out of. Not very computer savvy

    For starters, stop Lightroom

    On Windows, do the following

    Click the Windows Start button and in the search box type: -.

    %AppData%\adobe\lightroom

    Then press Return\Enter

    This will take you to the folder Lightroom (see image below)

    Select the Preferences folder and click on delete to send it to the Recycle Bin.

    Close the Lightroom folder, and re-start the Lightroom program.

  • Is there a way of only not to run a query on the rendering of the table?

    Is there a way of only not to run a query associated with an af:table on the rendering of the table on the page?
    I want to this control programmatically.

    Examples will be very appreciated.

    Yes, there is.

    {: identifier of the thread = 2362354}

  • Is there a way for EA to automatically save the audio files in the project and publish directories &amp; json?

    Is there a way for EA to automatically save the audio files in the project and publish directories & json? Thank you

    Bob

    good edge would not copy all the external files that you have added to your project in the publication of record, you should only do copy paste your files and folders created by your self after publication!

    and I can not undrestand "Unlike you, I'm not that qualified and often make mistakes that make some of my totally useless code retries." You can save your project every time with the new name to have your previews works!

    and on the withdrawal of your symbols that uses the name of the class, you're hurting, you should do it this way

    SYM $(".) Preview"). Remove();

    and that's why you can not make it work

    If tehre is any question feel free to ask me questions

    Zaxist

  • With the help of Adobe Acrobat Pro XI: is there a way to select existing text / change the font color of this

    With the help of Adobe Acrobat XI Pro Trial Version: is there a way to select existing text / change the font color of the text?  (there are here - but where is it to XI pro?)

    I have been using Acrobat 8 Pro & it's very simple, but I was not able to do using Pro XI!

    1. Open the PDF file
    2. Click on the Tools Menu
    3. Click the editing of content
    4. Choose text & Images

    They wanted to make it easier to get.

  • Is there a way to display animations embedded in the timeline?

    I made an animation that is nested in a clip, but it appears not on a frame-by-frame in the scenario... is there a way to make it appear in the scenario?

    I need to take a picture of my screen with each picture on it for a project of animation stop motion for the school... I tried to export a series of still images as a solution, but for some reason that nested animation data also fails to appear in any type of export of the film.

    Does anyone have any suggestions?

    Create animation as a graphic symbol and extend along the timeline for the number of images there.  When you move along the timeline with the cleaning brush, you should see the images to animation.

  • Procedure to export the result of the query to an excel or csv

    Hi all

    I have two identical paintings

    EMP_TEST OF THE EMP

    ID ID NAME

    1     SAM                      1        SAM

    2 JOHN 2 ROCK

    3 3 STEVE BRAND

    I need to combine the result under the query and intent to export data to excel using a procedure

    my query is

    Select 'EMP_ID', E1. EMP_ID, AND. EMP_ID from emp E1,

    emp_test AND WHERE E1. EMP_ID = AND. EMP_ID

    UNION

    Select "EMP_NAME", E1. EMP_NAME, AND. Emp E1 EMP_NAME,

    emp_test AND WHERE E1. EMP_ID = AND. EMP_ID

    but I get this error message

    ORA-01790: expression must have same type of corresponding data

    EMP_ID is a number and EMP_NAME is of type varchar.

    I need any idea or suggestion on sub queries.

    (1) I have to combine the result set in a single query.

    (2) I need to write the procedure that will export the result of the query to an excel or csv.

    Thank you.

    As PR has said, there are ways that have already been explained in this forum to write in external files. For your query condition, try this.

    SELECT CASE WHEN (REGEXP_LIKE (T1.ID,'[^ [: alpha:]] "")) THEN 'EMP_ID '.

    ELSE "EMP_NAME' END AS COL_NAME.

    T1.ID,

    T2.ID

    DE)

    SELECT CASE WHEN ID IS NULL THEN NAME ANOTHER TO_CHAR (ID) END AS ID,

    ROW_NUMBER () OVER(ORDER BY RN NULLS FIRST,ID) RN

    DE)

    SELECT ID, NULL,

    NAME,

    RN ID

    FROM EMP

    UNION ALL

    SELECT ID,

    NAME,

    RN NULL

    FROM EMP)) T1.

    (SELECT CASE WHEN ID IS NULL THEN NAME ANOTHER TO_CHAR (ID) END AS ID,)

    ROW_NUMBER () OVER(ORDER BY RN NULLS FIRST,ID) RN

    DE)

    SELECT ID, NULL,

    NAME,

    RN ID

    OF EMP_TEST

    UNION ALL

    SELECT ID,

    NAME,

    RN NULL

    OF EMP_TEST)) T2

    WHERE T1. RN = T2. RN;

    OUTPUT:

    COLUMN-NAME ID ID
    --------  ---------------
    1 1 EMP_ID
    2 2 EMP_ID
    3 3 EMP_ID
    SAM EMP_NAME MARK
    EMP_NAME JOHN JOHN
    EMP_NAME STEVE DARREN

    6 selected lines.

Maybe you are looking for

  • conversion of values boxes to

    I use a spreadsheet to track donations of clothing. I have 3 categories for the quality of the item; New, good & worn that are set up as boxes. I have another cell to enter a value for the tax credit, but rather than manually inputing a amount, I wou

  • iNode files

    Can I safely delete files iNode in lost + found without causing problems to the OS / X?  I have two of these files of more than 5Gigabytes each.

  • MainStage3 question choking

    Hello.  Got a delicate here. I have a MacBookPro (2011) 10.11.3 running.  I7 and 8 GB of RAM.  Am a musician tourism professional running MainStage3, using keyboards provided them as MIDI controllers. Have used this system in Australia, as well as on

  • the compass sensor not work lenovo vibe s1

    When I tried to use the qibla finder and compass on my s1 vibe Unit recently bought, it is said the magnetic sensor are not workimg. How can I solve this problem?

  • motor DC servo to matlab simulink

    Hello I like the design of servo motor dc to matlab simulink.but I don't know how to design so if someone can help me please