Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: 2 select(count(*)) in a query
Doesn't work
SQL> select count(*) from aaguser
2 union all
3 select count(*) from audit_trail;
COUNT(*)
2971 21
-- Niall Litchfield Oracle DBA Audit Commission UK "Rene Nyffenegger" <rene.nyffenegger_at_gmx.ch> wrote in message news:a6d06107.0109210641.29250850_at_posting.google.com...Received on Mon Sep 24 2001 - 07:02:02 CDT
> >
> > I've got 2 tables and I ask to myself if we can count total elements of
> > the 2 tables in one query
> >
> > Ex : select count(*) from A + select count(*) from B.
>
>
> select count(*) from a union all select count(*) from b
>
> hth
> Rene
![]() |
![]() |