| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: ORACLE QUERY
select record_identifier from records where rownum<(
select 40-count(*) from
(select 1 from customer_view
union all
select 2 from unit_view)
);
Just a thought, HTH.
Nirmal.
-----Original Message-----
Sent: Monday, November 11, 2002 11:13 AM
To: Multiple recipients of list ORACLE-L
Hi All,
I want to know about one query.
I have two views and I want to get the sum of count of two view ex I have a query like
select record_identifier from records where rownum<(40-(select count(*) from
customer_view+select count(*) from
unit_view));
But this is not working in oracle.
Is there any other way to do this without writing a function
--
Best Regards
- Savita
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Nirmal Kumar Muthu Kumaran
INET: NIRMALK_at_qtel.com.qa
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 Mon Nov 11 2002 - 04:03:39 CST
![]() |
![]() |