Skip to Content
author's profile photo Former Member
Former Member

Like Operator

Hi All,

I need to check the below condition to suppress a section.

My query is like this

SELECT scan_mode,STATUS,transaction_no FROM gfi_transaction WHERE transaction_id={?TID}

If transaction no starts with GR then i need to hide a particular section.The value for transaction no is GR_9

I wrote condition like this

transaction_no like "G?" but not working .

Please suggest.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Sep 02, 2013 at 05:27 AM

    Hi Divya,

    The formula should be:

    transaction_no LIKE "GR*"

    -Abhilash

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 02, 2013 at 06:06 AM

    Hi ,

    TRY with 'GR%'.

    Regards,

    Priyaranjan

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 02, 2013 at 06:17 AM

    If transaction no starts with GR then i need to hide a particular section.The value for transaction no is GR_9

    I wrote condition like this

    transaction_no like "G?" but not working .

    Transaction_no like 'GR%' should work in this scenario.

    and also rememnber that value given is case sensitive.

    Regards,

    Priyaranjan

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.