Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> AW: Sql problem

AW: Sql problem

From: <v.schoen_at_inplan.de>
Date: Thu, 19 Dec 2002 06:49:39 -0800
Message-ID: <F001.0051E254.20021219064939@fatcity.com>


Try following:

Select t.*,t.RowId

, CONTR_ROWS_MG - CONTR_ROWS_GROSS_RECEIVED OutStanding
, CONTRACT_SALESAGENT_PERCENTAGE * CONTR_ROWS_GROSS_RECEIVED / 100
AgentShare ,CONTRACT_SHARE_FIXED OtherShareFixed ,CONTRACT_SHARE_PERCENTAGE * CONTR_ROWS_GROSS_RECEIVED /100
OtherSharePercentage

,(CONTRACT_SALESAGENT_PERCENTAGE * CONTR_ROWS_GROSS_RECEIVED / 100)*2
AgentShare2

 From Contract_Rows T,Contract

Where Contract.Contract_Unique = t.contr_rows_contract_unique

Volker Schoen
E-Mail: mailto:v.schoen_at_inplan.de
http://www.inplan.de

-----Ursprüngliche Nachricht-----
Von: Zsolt Csillag [mailto:info_at_starsoft.hu] Gesendet: Donnerstag, 19. Dezember 2002 14:44 An: Multiple recipients of list ORACLE-L Betreff: Sql problem

Hi,

The following select does not work, I get ORA-00904 error message that the AgentShare column does not exists. It would be painful to write down every calculation many times because I can't make a reference to a previous calculated colunm.

Select t.*,t.RowId

, CONTR_ROWS_MG - CONTR_ROWS_GROSS_RECEIVED OutStanding
, CONTRACT_SALESAGENT_PERCENTAGE * CONTR_ROWS_GROSS_RECEIVED / 100
AgentShare ,CONTRACT_SHARE_FIXED OtherShareFixed ,CONTRACT_SHARE_PERCENTAGE * CONTR_ROWS_GROSS_RECEIVED /100
OtherSharePercentage

,AgentShare *2

 From Contract_Rows T,Contract

Where Contract.Contract_Unique = t.contr_rows_contract_unique

Thank you in advance

Zsolt Csillag,
Hungary

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Zsolt Csillag
  INET: info_at_starsoft.hu

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the
message BODY, include a line containing: UNSUB ORACLE-L (or the name of
mailing list you want to be removed from).  You may also send the HELP
command for other information (like subscribing).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: v.schoen_at_inplan.de

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Thu Dec 19 2002 - 08:49:39 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US