Results 1 to 3 of 3
  1. #1
    Join Date
    May 2013

    Unanswered: case statement column's used in order by , show error 'Invalid Column in the context'

    Hi ,
    I have query with order by clause having

    customised column using case statement , when

    this column is used on order by clause , its

    showing error 'Invalid Column in the context' .


    I try to use the entire case statement in the

    order by clause it's working fine, the problem i

    have using this solutions is performance

    degrade.Even this customised columns have

    reference columns as well.
    Please anyone could

    suggest a solution how to proceed with this

  2. #2
    Join Date
    Apr 2006
    Provided Answers: 11
    why don't you start with :
    1. reading the entry : before posting ....
    2. specify db2level / platform
    3. publish the query / return code / sqlcode....
    4. ddl needed to look at issues
    Best Regards, Guy Przytula
    Database Software Consultant
    Good DBAs are not formed in a week or a month. They are created little by little, day by day. Protracted and patient effort is needed to develop good DBAs.
    Spoon feeding : To treat (another) in a way that discourages independent thought or action, as by overindulgence.
    DB2 UDB LUW Certified V7-V8-V9-V9.7-V10.1-V10.5-V11 Fundamentals- DB Admin - Advanced DBA -Dprop..
    Information Server Datastage Certified

  3. #3
    Join Date
    Jun 2003
    Toronto, Canada
    Provided Answers: 1
    The error is clearly on line 17 of your code.
    "It does not work" is not a valid problem statement.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts