Convert this filter in SQL

Hello

I have 2 ID prompt and BIC

Once I set variable presentation. I spent this values in my report filter. In the report filter, I put "Covert this filter SQL" option.

But when I choose values in my two guest so I can able to see the values in my report. But when I choose only guest the value then not able to display.

Please check my filter. When I put directly as Credit_Bic ' %' then works fine but when I put a case condition then not show all records?


and"Case header '." ID credit"LIKE (BOX WHEN '3582020570001' =" THEN ' %% 'ELSE END ' 3582020570001')
and"Case header '." Bic credit"LIKE (BOX WHEN"="THEN ' %' OTHER ' @{ClientBIC}' END)

Thank you

Gram

Solved.

and "Case header '." Credit Id' AS (CASE THAT '3582020570001' IS NULL THEN ' %% 'ELSE END ' 3582020570001')
and

"Case header '." Bic credit"AS (BOX WHEN" IS NULL THEN ' %' OTHER ' @{ClientBIC}' END)

I put IS NULL instead of =

Tags: Business Intelligence

Similar Questions

  • I have seconds in digital format, I need to convert this number to format MI: SS

    Hi all

    I have seconds in digital format, I need to convert this number to format MI: SS

    ex SEC 119-> 01:59 you guys can help me?

    s 900-> 15:00

    can you help me?

    Thank you all.

    Hello

    Here's one way:

    SELECT TO_CHAR (TO_DATE (119 ' SSSSS'), 'MI: SS') FROM DUAL;

    SQL > SELECT TO_CHAR (TO_DATE (119 ' SSSSS'), 'MI: SS') FROM DUAL;

    TO_CHAR (TO_DATE(119,'SSSSS'),')

    ------------------------------

    01:59

    SQL >

  • How to convert the number to SQL?

    How can I convert the number in SQL?
    The problem is that I use .NET and the Oraclenumber seems to be too big.

    Number of database - what I get when I select
    -----------'12'--------------------------------------'12'
    -12, 1-12, 10' <-this 0 should not be there
    -----------'12,12'-----------------------------------'12,12'
    -12, 123'---12, 1230' <-this 0 should not be there
    -----------'12,1234'-------------------------------- '12,1234'


    I don't know why this happens?

    Now, I tried to select with to_char (COLUMN1), but when I have values like "' 0,15 ' in the base, I get in select ', 15' when I convert with to_char?"

    Anyone know a solution?

    Kind regards
    Simon

    Edited by: user3654758 the 30.09.2010 02:02

    with mytable as
    (select 12 n of all the double union)
    Select 12.1 in union double all the
    Select 12.12 in union double all the
    Select 12.123 in all the double union
    Select double 12.1234)
    Select case when trunc (n) = n then
    TO_CHAR (n, 'FM9999999999999999999')
    on the other
    TO_CHAR (n, 'FM9999999999999999999D9999999')
    end
    FROM MyTable;

    Edited by: hartmutm the 30.09.2010 02:21

    I changed it a bit, because you have a problem with the separator decimal escape in the previous code.

  • Convert this PLC in LabVIEW (hold pulse signal) function

    Hi, can someone help me convert this simple function PLC (Programmable Logic Controller) in LabVIEW?

    Basically, S1 is a normally open switch and S2 a normally closed switch. K1 is a contactor. Pressing S1 will trigger the switch and switch K1 will hold the value (true) until you press S2 (reset).

    Thank you.

    No worries,.

    Suggest you try to use a value from the State of the lock switch shift register.  Might look like this:

  • Get the error code: 0 x 80041003 in Event Viewer. Events cannot be delivered through this filter until the problem is resolved

    Original title: - what the heck is - this?

    Can someone tell me what this means - in English?

    Filter event with the query "SELECT * FROM __InstanceModificationEvent WITHIN 60 WHERE TargetInstance ISA 'Win32_Processor' AND TargetInstance.LoadPercentage > 99" could not be reactivated in namespace '//./root/CIMV2' because of error 0 x 80041003.» Events cannot be delivered through this filter until the problem is resolved.

    I get this topic once per hour in my diary of events 'Application '.  The Source is: Microsoft-Windows-WMI and the event number is: 10

    Every word is understandable and I know what they mean, but how they are threaded and beat me to the syntax.

    Bill

    Thanks for the reply, Gerry.  I'm no stranger to computer, having started in 1962 in the Navy for 20 years.  The HD is fine.  I used the Hitachi software testing to verify this.  RAM is also fine after running MEMTest for about 17 hours.  CHKDSK shows up at all no error.

    I agree it could be caused by a hardware fault and looking for that I ran some tension and trials of O-scope on the motherboard.  The only discrepancy I found was Aida64 Pro told me that the 3.3V rail was only 1.75 v.  My DS was told that the rail was 3.327.  This led to the conclusion that maybe the sensor was messed up.  I have an almost identical computer with a motherboard in the same series and Aida reports that rail even as 3.319v.  So, I think that the motherboard may be offset slightly.

    The re - install is an easier way to remove a large number of applications I just didn't need more and had not touched in over a year.  Revo even would have struggled to clear the registry after such massive uninstall.

    I found that the results from a command prompt is quite easy if you issue the command once, read the results on the screen, and then do it again but to redirect the output to a text file ("' do_whatever > test_output.txt '").  All you have to do is cop0y and paste a post.

    This re - install and the subsequent installation of SP2, seems to have solved the error of the event: for now.

    Bill

  • Event 10, WMI and error 0 x 80041003, events cannot be delivered through this filter until the issue is resolved.

    Original title: that the error of the Devil: the 10, WMI event

    Log name: Application
    Source: Microsoft-Windows-WMI
    Date: 22/02/2013 20:23:43
    Event ID: 10
    Task category: no
    Level: error
    Keywords: Classic
    User: n/a
    Computer: INTL
    Description:
    Filter event with the query "SELECT * FROM __InstanceModificationEvent WITHIN 60 WHERE TargetInstance ISA 'Win32_Processor' AND TargetInstance.LoadPercentage > 99" could not be reactivated in namespace '//./root/CIMV2' because of error 0 x 80041003.» Events cannot be delivered through this filter until the problem is resolved.
    The event XML:
    http://schemas.Microsoft.com/win/2004/08/events/event">
     
       
        10
        0
        2
        0
        0
        0 x 80000000000000
       
        2515
       
       
        Application
        INTL
       
     

     
        ./root/CIMV2
        SELECT * FROM __InstanceModificationEvent WITHIN 60 WHERE TargetInstance ISA 'Win32_Processor' AND TargetInstance.LoadPercentage > 99
        0 x 80041003
     

    Anyone know what the h___ that's it?

    Hi Al Adams,.

    Thanks for posting your question in the Microsoft Community Forum.

    Based on the information, you receive the event 10, WMI and error 0 x 80041003 on Windows 7 computer.

    It would be useful that you can answer these questions to help you best.

    1. when exactly you receive the error messages?

    2. you remember changes to the computer before the show?

    This problem occurs if the WMI filter is accessible without the necessary permissions. To resolve this problem, refer to the article and try the steps:

    10 event ID is logged in the application log after you install Service Pack 1 for Windows 7 or Windows Server 2008 R2

    It will be useful.

    Let us know if you need help with Windows related issues. We will be happy to help you.

  • Convert int value of sql in QString without using C++

    Hi, I'm having trouble passing an integer value in my list. I am entirely dependent on QML and would rather not touch C++ because they tend to create more problems for me sometimes.

    I need to load some data such as: Int ID, string directory in my GroupDataModel.

    It is:

    (1) I use the ID as a sort key

    AND

    (2) I want to display on my list as well.

    I found another solution that calls for the values to store them as "001, 002, 003," etc, but as I mentioned, I would like to view the information and is not sustainable.

    I wonder if maybe I can use javascript to convert this string? I tried to look for Qt btu solutions, they are all highly dependent on C++ and I do not want to touch that.

    I tried:

     function convertInt (data){return QString(%1).arg(ListItemData.CategoryID || "")}
    

    But it doesn't seem to work at all...

    I also tried ListItemData.CategoryID.toString () but it does not work as well...

    Can someone please? Thank you!

    After hours of trial and error, I finally managed to get CategoryID show.

    Instead of referring to him as ListItemData.CategoryID, I just used: ListItemData under the heading ListItemComponent.

    I also deleted the itemType function because it does not seem necessary here atm.

    Apparently it's kind of 'automatic' putting in the CategoryID in the sortingKeys and grouping.

  • .mts file appear too large in my view window, that I need to convert this file and what?

    Hi all, it's been a while since I used Prem and have a little video project on, my camera in .mts and I fight for this import in the first... I need to convert this file and what? MTS file appears too large in my view window, I need to convert this file and what I really don't want to lose any quality of the video, I'm not interested in sound.

    Or can I adjust the aspect ratio first to account for this? It would be better?

    Thanks in advance

    ChristianScreenshot.jpg

    Do one of the two to obtain a corresponding sequence:

  • the chest x-ray: this filter does not work with Dreamweaver CC 2015.

    < HTML >

    < Head >

    < title >

    Filters 3

    < /title >

    < / head >

    < style >

    IMG

    {

    filter: xray();

    }

    < / style >

    < body >

    < Img src="file:///E:/Pratibha%20%20Pics/Aishwarya%20Rai/super-sexy-

    "Aishwarya-rai - wallpapers_4354.jpg" >

    < / body >

    < / HTML >

    the chest x-ray: this filter does not work with Dreamweaver CC 2015.

    IMG {}

    filter: xray();

    -webkit-filter: invert(100%) grayscale(100%);

    filter: invert(100%) grayscale(100%);

    }

  • How to convert this BSO formulas formulas ASO?

    I need help to convert this BSO formulas formulas ASO:

    BSO formulas:
    12 * ("head count"-> "stopped" / ((@PRIOR("Head Count"-> "Total Active & Leave") + "number of head"-> "Total assets & leave ') / 2));

    'Number of head' is a member of the dimension account
    'Complete' and ' Total assets & leave "are members of the dimension of the State


    Existing Active
    New rental
    Assets
    CARPET
    STD
    OTH
    Leave
    Holidays & total assets
    Volunteer
    Involuntary
    Death
    Retirement
    End of temporary assignment
    Terminated
    LTD
    Total status
    Promotion within level
    Promotion to the next level
    Promotion
    No Total status
    All Status
    Status (Dimension)



    ASO, the formulas will be?

    Thank you

    Try

    CASE WHEN IS([Period].CurrentMember, [Jan]) THEN
    
    12 * (([Head Count], [Terminated] ) /
    ((( [Head Count], [Total Active & Leave], [Dec], [Year].CurrentMember.lag(1) ) +
    ([Head Count], [Total Active & Leave])) / 2))
    ELSE
    12 * (([Head Count], [Terminated] ) /
    ((( [Head Count], [Total Active & Leave], [Time].CurrentMember.lag(1) ) +
    ([Head Count], [Total Active & Leave])) / 2))
    END
    

    Note that this implies that your dimension of the year is in descending order

    Year
    -2007
    -2008
    -2009

    If the year is in ascending order

    Year
    -2009
    -2008
    -2007

    Then, you need to change

    [Year].CurrentMember.lag(1) 
    

    TO

    [Year].CurrentMember.lead(1)
    
  • How to simplify this query in sql simple select stmt

    Hello

    Please simplify the query

    I want to convert this query in a single select statement. Is this possible?
    If uarserq_choice_ind is not null then

    Select ubbwbst_cust_code
    From ubbwbst,utrchoi
    Where utrchoi_prop_code=ubbwbst_cancel_prod
    Else

    Select max(utvsrvc_ranking)
    From utvsrvc,ubbwbst
    Where utvsrvc_code=ubbwbst_cancel_prod
    End if
    Select ubbwbst_cust_code as val
    From   ubbwbst,utrchoi
    Where  utrchoi_prop_code=ubbwbst_cancel_prod
    AND    uarserq_choice_ind is not null
    union all
    Select max(utvsrvc_ranking) as val
    From   utvsrvc,ubbwbst
    Where  utvsrvc_code=ubbwbst_cancel_prod
    and    uarserq_choice_ind is null
    

    Without more information, we are unable to combine the two queries in 1 without a union.
    Looks like you select values totally disperate of totally different tables

  • How to convert this SQL PL/SQL query

    Basically, I need to create an anonymous block that will display the name of each student, family name and the number of students who scored less than test 1 that the student.

    So basically you need to find the number of students scoring less than this particular student and we do it for all students of the table.

    So, for this particular query, I designed my code in SQL

    Select g1.gr_fname, g1.gr_lname, count (*)
    grade g1, g2 grade
    where g1.gr_t1 > g2.gr_t1 and
    G1.std_code = g2.std_code
    G1.gr_fname group, g1.gr_lname;

    But I am unable to get the logic of how to run it in PL/SQL, something missing a minor detail to run the same in PL/SQL

    could someone help me please with the logic.

    Thank you

    You can write it in pl/sql like this

    begin
      for i in (
                select g1.gr_fname, g1.gr_lname, count(*) cnt
                  from grade g1,
                       grade g2
                 where g1.gr_t1 > g2.gr_t1
                   and g1.std_code = g2.std_code
                 group by g1.gr_fname, g1.gr_lname;
               )
      loop
        -- I have just wirtern the output into the buffer. You can do what ever you want here.
        dbms_output.put_line(i.gr_fname||'/'||i.gr_lname||'/'||i.cnt);
      end loop;
    end;
    
  • How can I convert this little block pl/sql in a single query?

    Hello

    I need to have a single SQL query that gives the same output as the following piece of code that uses a cursor to iterate over the lines to get the information I need:

    declare
    cursor c (p varchar2) is
    Select context_id, id and parent_id
    of CONTEXT_CONTEXT
    Start by parent_id is null
    and context_id = p
    connect by parent_id = prior id
    and context_id = p;

    Start
    for r in (select context_id in the ALL_CONTEXTS where type_contexte in ('MYTYPE'))
    loop
    j in c (r.context_id)
    loop
    -I want to get the values of the following columns in a query:
    dbms_output.put_line(j.context_id ||) ' ' || j.ID | ' ' || j.parent_id);
    end loop;
    end loop;
    end;

    /*
    Additional information:
    References CONTEXT_CONTEXT.context_id ALL_CONTEXTS.id
    CONTEXT_CONTEXT.ID references ALL_CONTEXTS.id as well
    CONTEXT_CONTEXT.parent_id references ALL_CONTEXTS.id as well
    ID is the primary key of the ALL_CONTEXTS
    (context_id, id) is the primary key of the CONTEXT_CONTEXT
    */

    In 9i, you can do it,

    SELECT context_id, REPLACE ( SYS_CONNECT_BY_PATH ( DECODE (LEVEL, 1, context_id), '~'), '~') AS parent_context_id
      FROM CONTEXT_CONTEXT
    START WITH parent_id IS NULL
           AND context_id IN (SELECT context_id
                                FROM all_contexts
                               WHERE context_type IN ('MYTYPE'))
    CONNECT BY PRIOR ID = parent_id
           AND context_id = PRIOR context_id;
    

    G.

  • Please convert this SQL ORALCE code

    Select the title

    cases where there is right (title, 2) = 12 then cast (left(title,2) + 1 varchar (2)) + cast ('01' as varchar (2))

    another title + 1 end next_title,

    cases where right(title,2) = '01' then cast (left(title,2) - 1 varchar (2)) + cast ('12' as varchar (2))

    another title - 1 end prev_title

    of strdc_admin.st_glt_shipment

    Group by title

    title sequence

    If the title is of type VARCHAR2:

    SELECT   title,
             CASE
                WHEN SUBSTR(title, -2) = 12 THEN TO_CHAR(TO_NUMBER(SUBSTR(title, 2) + 1)) || '01'
                ELSE TO_CHAR(TO_NUMBER(title + 1))
             END AS next_title,
             CASE
                WHEN SUBSTR(title, -2) = 12 THEN TO_CHAR(TO_NUMBER(SUBSTR(title, 2) - 1)) || '12'
                ELSE TO_CHAR(TO_NUMBER(title - 1))
             END AS prev_title
        FROM strdc_admin.st_glt_shipment
    GROUP BY title
    ORDER BY title
    

    URS

  • Convert a statement of SQL for Oracle Server Update

    Hello
    I need to convert an update statement written for SQL Server to run on Oracle.
    the update is:

    UPDATE TABLE1
    SET TBL2 = CDate. CDate
    OF TABLE1 TBL1
    JOIN TABLE2 ON TBL2 TBL2. Code = TBL1. TBL2Code
    JOIN TABLE3 TBL3 ON TBL3. ID = TBL1. ID
    WHERE TBL3. TypeCode = '07'

    How can I make compatible with oracle?

    Thank you!!

    Try this...

    MERGE INTO table1 t1
         USING (SELECT t2.cdate cdate, t1.ROWID ri
                  FROM table2 t2, table3 t3, table1 t1
                 WHERE     t2.code = t1.tbl2code
                       AND t3.id = t1.id
                       AND t2.typecode = '07') src
            ON (t1.ROWID = src.ri)
    WHEN MATCHED
    THEN
       UPDATE SET t1.cdate = src.cdate
    

Maybe you are looking for

  • Qosmio F750 - cannot get certain functions to work after 8 Win uprgade

    I have a Qosmio F750-125, PQF75E. Since I upgraded to Win 8, using Toshiba Upgrade Assistant I might add, I had a few problems.Especially not be able to get my Toshiba Blu - ray player to install. Finally I managed, still haven't exactly how, but som

  • WinDVD Creator2 cannot detect input of the TV or VCR

    I have a portable Satellite Pro M40 and I am trying to enter the data for my TV/VCR so that I can record to DVD. I have already used the system to import data through a digital video camera without problems. But now, I am trying to convert the family

  • After installing the Vista SP2, IE 8 does not work well.

    After installing Vista SP2, IE 8 under my.live.com does not work.  The pages do not FLOW RSS download, links on the page at the top are not active and usually IE has out crapped.  I went to run a complete Internet security suite uninstall Trend Micro

  • Analog output using DAQmx task

    I need a signal to analog waveform using 6259 output, I followed the instructions to "Build an analogue output VI in NOR-DAQmx" in the developer area OR, when I run the code I receive thefollowing error message "Error-50103 occurred in the DAQmx writ

  • PC registry shield?

    Everyone knows this program? He starts the search from my computer at first upward and I tried to remove it, but it's still there. I have not download this and don't know where it comes from.