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

table

I need to query a table with 4 key fields, values of three key fields I know, the fourth key field should always be blank.

select * from t1 where

f1 = 'A' and

f2 = 'B' and

f3 = 'C' and

f4 = ??

How should I code this.

Thanks.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Posted on Jan 29, 2008 at 06:59 AM

    Did you try using SPACE.

    f4 = space.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 29, 2008 at 06:59 AM
    select * from table A
        into table itab
        where f1 = 'A' and
    f2 = 'B' and
    f3 = 'C' and
    f4 = ' '.  "<<<<<<<<or *space*
    
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2008 at 07:03 AM

    Hi,

    Try

    select * from t1 where

    f1 = 'A' and

    f2 = 'B' and

    f3 = 'C' and

    f4 = ' '.

    Regards,

    Chandru

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2008 at 07:06 AM

    hi S V,

    this should work.

    select * from t1 where

    f1 = 'A' and

    f2 = 'B' and

    f3 = 'C' and

    f4 = ' '

    cheers,

    nithin

    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.