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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: ORA-00904 on a valid view when using count(*)

Re: ORA-00904 on a valid view when using count(*)

From: Maria Aurora VT de la Vega <mtdelavega_at_pse.org.ph>
Date: Tue, 01 Jan 2002 18:04:18 -0800
Message-ID: <F001.003E4BA2.20020101173517@fatcity.com>

so sorry, that was i typo....i was reading gain_vw as gain_view...

Kimberly Smith wrote:

> Hum, its early and really I am more interested in my friend
> getting here and going snowboarding but why are you expecting
> gain_vw to work? Or is that a typo?
>
> -----Original Message-----
> Aurora VT de la Vega
> Sent: Friday, December 28, 2001 11:05 PM
> To: Multiple recipients of list ORACLE-L
>
> we have view named gain_view
> which was created with this sql
> SELECT co.name, sec.alias, sec.security_name, sec.security_symbol,
> sq.open, sq.high,
> sq.low, sq.close, sq.previous, sq.last_trade_price, sq.total_volume,
> sq.total_value,
> (((sq.last_trade_price - sq.previous)/sq.previous) * 100) AS
> perc_change,
> (sq.last_trade_price - sq.previous) AS value_gain
> FROM trade_quotes_vw sq, security sec, company co
> WHERE sq.security_symbol = sec.security_symbol
> AND sec.company_id = co.company_id
> AND NVL(sq.previous,0) > 0
> AND (NVL(sq.last_trade_price,0) - NVL(sq.previous,0)) > 0
> ORDER BY perc_change DESC
>
> when we do a select * from gain_view we get the correct results
> but when we use select count(*) from gain_vw we are getting ORA-00904
>
> any ideas?
>
> --
> Maria Aurora VT de la Vega (OCP)
> Database Specialist
> Philippine Stock Exchange, Inc.
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Maria Aurora VT de la Vega
> INET: mtdelavega_at_pse.org.ph
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> 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.com
> --
> Author: Kimberly Smith
> INET: ksmith2_at_myfirstlink.net
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> 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).

--
Maria Aurora VT de la Vega (OCP)
Database Specialist
Philippine Stock Exchange, Inc.


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Maria Aurora VT de la Vega
  INET: mtdelavega_at_pse.org.ph

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
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 Tue Jan 01 2002 - 20:04:18 CST

Original text of this message

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