AllExperts > Ingres 
Search      
Ingres
Volunteer
Answers to thousands of questions
 Home · More Ingres Questions · Answer Library  · Encyclopedia ·
More Ingres Answers
Question Library

Ask a question about Ingres
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Jean-Pierre Zuate
Expertise
Any questions about database Ingres (owned by Computer Associates then Ingres Corp) : - Ingres 6.4 - OpenINGRES from 1.0 to 2.0 - IngresII from 2.0 to 2.6 - Ingres R3, Ingres 2006 (Open Source version) - All tool around Ingres : ABF, Report Writer, Replicator, OpenROAD (3.5 to 2006), Ingres/NET Ingres/STAR, ...

Experience
16 years of computing experience as :
- AS400 programmer
- AIX / Ingres administrator and developer (OpenROAD and korn shell)
- Ingres DataBase Administrator
- Ingres expert - Data modelisation - ETL - Reporting - Many of Computer Associates sofwares - ITIL / CMDB / Change Management

Organizations
http://lafageconseil.fr

 
   

You are here:  Experts > Computing/Technology > Databases > Ingres > returning error

Ingres - returning error


Expert: Jean-Pierre Zuate - 12/18/2006

Question
Hello, Jean Pierre.
I can't handle one error because errno neither dbmserror returns its code. The error is:
E_PS0461 A <column reference> contained a <qualifier> 'm'    
   which did not correspond to any of the <table reference>s.
Do you know what can i do?
Thanks.
   within whose scope the <column reference> appeared.  

Answer
Hello Miguel,

First of all, you can find help with error messages from two way :
- in the directory II_SYSTEM ($II_SYSTEM on linux/unix or %II_SYSTEM% on windows) there is always the following ingres\sig\errhelp. In this directory you have a small utility that provide the complete message (but in your case it did not help)
- in the directory $II_SYSTEM\ingres\ingres\files\english\messages you can find a file named messages.txt and sometimes there is here an explanation for some error message

In your case you reference a column with an incorrect qualifier. "qualifiers" are the name of a table has it is mentionned in the FROM clause of your query. For example :
FROM my_table t, my_second_table t2. t & t2 are the qualifiers. If you do not specify thoses aliases, ingres use the name of the table.

The misuse of the qualifier can appears in :
- column list (select clause)
- having clause
- group by clause
- where clause
- check constraint

The text in messages.txt is the following :
E_PS0461_BAD_COL_REF_QUAL:SS42000_SYN_OR_ACCESS_ERR

%
Parameters:
  %0c - <qualifier> found in a <column reference>;
        may be of format <table name>, <correlation name>, or
        <schema name>.<table name>

Explanation:
  A <qualifier> found in a <column reference> did not identify any of the
  <table reference>s within whose scope the <column reference> appeared.
  
  A <column reference> found in a <target list> or <group by clause> of a
  query may only reference tables appearing in the <from list> (or
  equivalent) at the same scope.

  A <column reference> found outside of a <target list> or <group by
  clause> of a query may reference tables appearing in the <from list>
  (or equivalent) at the same scope or in outer subselects.

  A <column reference> in CHECK constraint found outside of subselects,
  must reference the table on which CHECK constraint is being defined.
  
System Status:
  The current statement is aborted; the program continues.

Recommendation:
  Correct the query and reenter.

Hope this help,
Jean-Pierre

Add to this Answer   Ask a Question


 
User Agreement | Privacy Policy | Kids' Privacy Policy | Help
Copyright  © 2008 About, Inc. AllExperts, AllExperts.com, and About.com are registered trademarks of About, Inc. All rights reserved.