Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: count distinct
Romeo Olympia schrieb:
Cheers Romeo, that's it!
The explain plan shows there's indeed only one full table scan in this solution:
3 SELECT STATEMENT
2 SORT [GROUP BY] 1 META.T_2 EXTERNAL TABLE ACCESS [FULL]
Thanks! I had the feeling there had to be a better solution than mine, it just looked too clumsy. ;-)
Stephan
> select count(distinct column1), count(distinct column2), > count(distinct column3), count(distinct column4) > from mytable; > > FlameDance <FlameDance_at_gmx.de> wrote in message news:<cbcupc$o15$03$1_at_news.t-online.com>... >