With the help of sql filter expression

Hi Experts,

I have a question using "sql expression" in the filters in the responses. Let's say I have a date filter and I wish that the value for this date as max (tablename.colname). Please tell me the syntax for this passage.

Another issue is that I have a date guest data are updated every week we'll tell the data refreshed like this * 01/08/11, 08/08/11 and 15/08/11 *. Now, if I select the 08/08/11 it will display the data
populated on * 08/08/11 * which is ok, but if I select * 09/08/11 to 14/08/11 * it only shows * 08/08/11 * data. Similarly, if the option * 16/08/11 or 16/09/11 * it should show the latest up-to-date data which is * 15/08/11 *.

Thanks in advance.
Chak

OK, if that State is limited as of the last update when your selects a date in guest that is beyond / above the last refresh date.

This can be a way to do as below:

– Enter the last updated date in a variable repository. If this variable will always hold a value for the last date discount.
-In guests, capture the date selected by the user in a variable of presentation and to apply the Sub statement in SQL advanced report.

DateColumn = case when Timestamp ' @{RBAP} {2011-01-01 00:00:00}'<= valueof("lastrefdate")="" then="" timestamp="" '@{pvar}{2011-01-01="" 00:00:00}'="" else="" valueof("lastrefdate")="">

RBAP following your presentation and lastRefDate var is your variable rep containing the last refresh date. What would this statement, if the user selects a date that is less than equal to the last refresh date, then report is filtered from this date. Otherwise, the report will be filtered by the value of the date of the last update.

Thank you

Tags: Business Intelligence

Similar Questions

  • With the help of smart filter in ACR on 32-bit images

    After combining the 3 images in HDR pro then opening in Photoshop using the dynamic filter of the CPR ACR, how can I keep the changes I made when I then flatten the image and convert to 16 bit?

    I seem to loose all the changes I made and he brings just the HDR Pro options.

    What is the point of being able to use the dynamic of ACR filter, if you then have to start again on a 16-bit version?

    I usually save the 32-bit version before you flatten and convert to 16-bit. You can always revert to the original edits by opening the 32-bit file. But yes, of course, it is a two-step process.

    When you're confronted with HDR dialog, once again, under the 'method', simply choose the exposure and Gamma. Then, you won't lose all your work on HDR on front.

  • SEQUENCING WITH THE HELP OF SQL

    Hello

    I have a requirement such as if my data is as follows

    name identity
    1 John
    2 John
    3 jane
    4 jimmy
    5 jimmy
    Jack 6

    I need a sequence that looks like

    Name seq ID
    1 John 1
    2 John 1
    3 jane 2
    4 3 Jimmy
    5 jimmy 3
    6 Jack 4

    and so on

    So, I have a suspicion we can use analytics, but cannot set up a query to do this.

    Sorry, it of a little naïve but would appreciate a hint...

    Thank you
    Birdy

    Hi, Birdy,

    Birdy says:
    Hello

    I have a requirement such as if my data is as follows

    name identity
    1 John
    2 John
    3 jane
    4 jimmy
    5 jimmy
    Jack 6

    I need a sequence that looks like

    Name seq ID
    1 John 1
    2 John 1
    3 jane 2
    4 3 Jimmy
    5 jimmy 3
    6 Jack 4

    and so on

    So, I have a suspicion we can use analytics, but cannot set up a query to do this.

    Your right; analytical functions can do that. DENSE_RANK assign a number without gaps, duplicate output when the input is duplicated.
    Do you care which name gets seq = 1 and who gets seq = 2? If this isn't the case, you can sort the names alphabetically:

    SELECT     id
    ,     name
    ,     DENSE_RANK () OVER (ORDER BY  name)     AS seq
    FROM     table_x
    ;
    

    In the output you posted, it appears you want what they classified by the id low associated with each name ('Jean' = 1, 'jane' = 3 and so on). You can get the id low with the analytical MIN function:

    WITH     got_min_id     AS
    (
         SELECT     id
         ,     name
         ,     MIN (id) OVER (PARTITION BY name)     AS min_id
         FROM     table_x
    )
    SELECT     id
    ,     name
    ,     DENSE_RANK () OVER (ORDER BY  min_id)     AS seq
    FROM     table_x
    ;
    

    Analytical functions cannot be nested. In other words, you can not say

    ... OVER (ORDER BY MIN (id) OVER ...)
    

    That's why I used the got_min_id of the subquery.

  • print the currency compared with the help of sql - sum sum

    I want to display summary amount for each ID with the motto inscribed on the amount as

    1 US $60
    2 GBP 30


    create table t1 (id number, currency varchar2 (3), the number of quantity);
    insert into t1 values (1, 'USD', 10);
    insert into t1 values (1, 'USD', 20);
    insert into t1 values (1, 'USD', 30);
    insert into t1 values (2, "GBP", 5);
    insert into t1 values (2, "GBP", 10);
    insert into t1 values (2, "GBP", 15);

    Thanks in advance

    Hello

    Can be like that

    SELECT id, currency || ' ' || SUM (amount)
          FROM ta1
        GROUP BY id, currency;
    

    see you soon

    VT

  • Problems with the help of control Edit Expression with tab control

    Hi all

    I am facing a strange problem when using Expression Edit Control with a tab control.

    When I put the Expression of the RichEdit controls on several tabs in a tab control, and when I run the application, the Expression Edit controls in a single tab are visible, others get invisible! I do NOTHING with them, but they do not simply show upward!

    I first faced this problem using Expr editing controls in Visual Studio c#. NET - with tab controls. For verification, I created a simple VI is LabVIEW to see if the problem is with my request / problem with Expression Edit controls in c#, etc. But voila!  A similar behavior in LabVIEW too! 

    I'm doing something wrong? OR do not do something right? Ask someone for help please ASAP!

    Thanks a ton in advance!

    DASI

    PS: Attached the VI here (LabVIEW 8.5) just download and run it, and you will see probably what I'm talking about!


  • With the help of a ternary expression inside the mxml tag

    I have a tag that looks like this:

    < mx:ViewStack width = "100%" height = "300" selectedIndex = "{(model. TemplateList.length > 0)? {0: 1} ">"

    Of course, I can't use the ' > ' sign inside a tag. Is there a way I can get away with this?

    You can pass around the expression so that it uses less-to the place of more - than. You can also use the entity > instead of ' > '.

  • With the help of SQL, need to display the previous year, current year and the year next to single variable

    Hi all

    We have an obligation to state the previous year, current year and values of the year next as a LOV in the ADF page.

    This is the query that retrieves the previous year, current year and next year. But the result of this query displays values in 3 columns:

    Select (Extract(year from sysdate)-1), extract (year sysdate), (extract (year sysdate) + 1) twice;

    Output:

    2012 2013 2014


    But I want to display them in a single with 3 rows as column:

    2012

    2013

    2014


    Please your ideas.

    or in the same way

    SELECT EXTRACT (YEAR FROM ADD_MONTHS (SYSDATE, 12 *(LEVEL-2)))

    OF the double

    connect by level<>

  • With the help of Photoshop CC on my MacBook Pro (bought a few months ago)... The question I have is that under the filter options, when you select made... There is no option use lighting effects... any suggestions

    With the help of Photoshop CC on my MacBook Pro (bought a few months ago)... The question I have is that under the filter options, when you select made... There is no option use lighting effects... any suggestions?

    Hello

    Please make sure that you work in 8 bits/channel and RGB mode. (Under Image > Mode > Select RGB and 8-bit per channel) lightning effects only works in this mode.

    Also in preferences > Performance > "Use Graphics Processor" must be checked.

    ~ Assani

  • With the help of the UNION with apex_item.select_list_from_query_xl

    Hello

    I currently have problems with the help of apex_item.select_list_from_query_xl in a select statement with a UNION in it. I have a region of type SQL report and my statement looks like:

    SELECT apex_item.text (c004, 1, NULL, 10) val
    Of apex_collections
    WHERE collection_name = "TABS".
    AND c002 = 'NUMBER '.
    UNION
    SELECT Apex_item.select_list_from_query_xl (1, c004, 'SELECT display_value' |)
    'OF tab_select_list' |
    "WHERE tab_column_sysid = ' |" C005) val
    Of apex_collections
    WHERE collection_name = "TABS".
    AND c002 = 'SELECT LIST'

    (Basically I'm trying to establish a relationship with a text element and a list of selection in there).

    The problem is that some of my selection lists are more than 4000 characters long need to use the apex_item.select_list_from_query_xl. The error returned from the foregoing is ORA-01790: expression must have the same data type as the corresponding expression, which is fair enough as the apex_item.select_list_from_query_xl returns a clob and apex_item.text a varchar2. So I tried casting the apex_item.text on the type clob as follows:

    SELECT to_clob (apex_item.text (c004, 1, NULL, 10)) val
    Of apex_collections
    WHERE collection_name = "TABS".
    AND c002 = 'NUMBER '.
    UNION
    SELECT Apex_item.select_list_from_query_xl (1, c004, 'SELECT display_value' |)
    'OF tab_select_list' |
    "WHERE tab_column_sysid = ' |" C005) val
    Of apex_collections
    WHERE collection_name = "TABS".
    AND c002 = 'SELECT LIST'

    and now I get the error ORA-00932: inconsistent data types: expected - got CLOB, which is unexpected. Someone has ideas how to get around this?

    Thanks in advance...

    Please we say your first name and add it to your forum profile to help us. Thank you.

    Try UNION ALL instead of UNION.

    Scott

  • With the help of old gear series noon on El Capitan

    I have a Vox Tonelab SE effects audio Board (around 2004), there the old serial midi on the back ports. I hung with the help of a USB MIDI interface cable. While the USB Midi interface to the show in Audio / Midi set upward and also in the profile system for USB port it does not detect the Vox Tonelab so no communication lunch.

    There is a POWERPC application called ToneLabSE SoundEditor which I downloaded and installed in the hope he would install a driver but I guess that this obviously doesn't work on INTEL in any case. Using Wine I can run the PC version, but still no communication via midi.

    Someone at - it ideas, would like to get this Panel communicating effects via MIDI.

    Thank you

    Solved! Using the WINE app I've run the version of the PC of ToneLab SE editor application. So pretty unintuitively by changing the serial midi to USB, SERIAL interface cables that went to the and out on the Tonelab SE. Now of the Se ToneLab editor I can write banks of programs to hardware Tonelab, but unable to empty the banks since the material Tonelab to software. My main desire was to use Expression pedals on the Tonelab as Midi Ableton controllers and some of the switches to the control of the Looper stomp. Now I can do it all. Hooray!

  • With the help of several types of video files into one film will prevent the publication?

    I am using Movie Maker on Vista.  I have mpeg, avi and wmv files.  The Movie Maker plays very well in project mode, but will not be published.  Multiple file extensions would be the source of trouble?

    If so, is there a quick fix?

    Hi d1bon,
     
    1. what exactly happens when you try to publish a project?
    2. do you get an error message?
     
    With the help of several file extensions should not be a concern.

    Disable video filters and check the result.
    1. click on tools and then click Options.
    2. click on the Compatibility tab.
    3. to turn off a filter, clear the check box next to the name of the video filter.

    You also uninstall the Codecs and check the result: Uninstall

    Please provide us with more details on the issue, so that we can better help you.
     
    Check publish a movie in Windows Movie Maker
    Check, solving problems with publishing a movie to your computer 
     
    Kind regards
    Syed
    Answers from Microsoft supports the engineer.

  • OEBS 12.1.3 purchase request for approval Notification - SOUL with the help of approvals.

    1. We discovered that the version of the SOUL of this notification is generated via a framework of OA.
    2. We have a requirement for the company to add details of the additional topics to the part of the notification.  These fields are not standard for objects of view OA executives Business so an extension of necessary view.
    3. With the help of this and other sites, I was able to extend the view object in the favorite jDeveloper IDE and transfer it to my development OEBS instance.
    4. I see my view extended on the OFA Page, when you look at the content of 'About' from the page.

    My problem is when I try to 'Customize' and add a column of extended view, errors Page OAF that I am trying to come back since the customization session.

    I joined "Personalization_Error_when_adding_new_column_from_OA_Extended_view_object.docx" detailing what I try to run.

    Support of Oracle said that extension of the view OFA is considered a "customization" and that he does not want to help.

    Can anyone advise on what I should look at to solve this error?

    Any feedback/assistance would be greatly appreciated.

    Best regards

    Rich

    The View attribute is referred to as "LAST_UPDATE_DATE". If this is what we call in the SQL query, the attribute of the view object might be different like "LastUpdateDate". Please check back in the XXVO.xml.

    If that has not solved the problem, its running diagnostics by activating the option FND:Diagnostics profile. Then you will get the link 'click here' link on the error page to get the error stack. You can stick the stack of error here.

    Thank you

  • Problem with the process running sql

    I created a pricess that deletes a file off of the table apex_application_files

    When I run the following statement:
    delete apex_application_files whose name like "resume.pdf" it works without problem

    When I run the following statement:
    delete apex_application_files whose name like ': P4_PDF_DISPLAY' he does not. what I have to do.

    I changed the: p4_pdf_display to be a single item displayed on the page
    With the help of the P4_PDF_DISPLAY can view the file in a query sql and beable to view the file to download, but am unable to delete
    Help!

    Hello
    >
    I created a pricess that deletes a file off of the table apex_application_files

    When I run the following statement:
    delete apex_application_files whose name like "resume.pdf" it works without problem

    When I run the following statement:
    delete apex_application_files whose name like ': P4_PDF_DISPLAY' he does not. what I have to do.

    I changed the: p4_pdf_display to be a single item displayed on the page
    With the help of the P4_PDF_DISPLAY can view the file in a query sql and beable to view the file to download, but am unable to delete
    >

    What is this point of P4_PDF_DISPLAY? It is the name of the file, as it is supposed to be in your delete statement? Or, view the article PDF?
    Verify session state to display the value of the element. You see the name in it?

    See you soon,.

  • Insert the record of one table to another with the help of the cursor

    Help, please!

    the tables are - 1. countries (country_id pk, country_name, region_id)
    2A (country_id, country_name, region_id)
    table data are
    1 to 1
    2 b 2
    3 C 3
    NULL d 4
    5 e 5
    6 f 6
    7 g 7
    -----------------------
    Insert the record in the table a country table with the help of the cursor, insert all the non-null records.
    This procedure does not correct result
    -----------------------

    create or replace
    Amit procedure as
    cursor c1 is select * from a;
    RW a % rowtype;
    Start
    Open c1;
    Fetch c1 into rw.
    While (C1% found)
    loop
    insert into countries values (rw.country_id, rw.country_name, rw.region_id);
    commit;
    Fetch c1 into rw.
    If rw.country_id is null then
    Fetch c1 into rw.
    end if;
    end loop;
    Close c1;
    exception
    while others then
    dbms_output.put_line ('exception = name ' |) RW.country_name);
    end;

    You don't need cursor at all;

    create or replace procedure amit as
    
    begin
      insert into countries (Country_ID, Country_Name, Region_ID)
      (select a.Country_ID
             ,a.Country_Name
             ,a.Region_ID
       from a
      );
    
      dbms_output.put_line('Rows inserted : ' || sql%rowcount);
    
      commit;
    
    end;
    /
    
  • With the help of operators ternary to set the source of the image

    Hello

    I use JDeveloper llg and have a table of the ADF, in one of the columns im trying to have just a displayed image.

    With the help of:
              <af:column width="16">
                         <img src="icons/bullet_green.png" 
                                 height="16"
                                 width="16"/>
                </af:column>
    It works very well and the correct image is displayed. Is it possible to use an EL expression to determine which image should be displayed using a ternary operator? I tried the following:
              <af:column width="16">
                            <img src="#{row.ServiceState == '100' ? 'icons/bullet_green.png' : 'icons/bullet_red.png'}" 
                                 height="16"
                                 width="16"/>
              </af:column>
    However no image is at all now displayed when the application is run. There someone now how to fix this?

    Thanks in advance...

    One solution is to use an af:image instead of the normal img tag. Then put the two af tags: image inside of you af:column and set the visible to your EL as attribute:

    
    
    
    
    

    Timo

Maybe you are looking for