Re: Why might this statement only return one row
Please read the manual pages on aggregation and Group By. Count() aggregates across rows. That gets you one result row unless you add a Group By clause. The query ...
select *, count(id) ...
is incoherent. If you just want the count, just ask for it. If you want it broken out across particular values of some column, add that column and add a Group By clause that cites that column.
Subject
Written By
Posted
Re: Why might this statement only return one row
October 08, 2016 12:35PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.