Skip to Main Content

SQL Developer

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Incorrect warning when parsing query with group by clause

JamHanJan 31 2014 — edited Feb 3 2014

I am using SQL Developer 4.0.0.13.80 with JDK 1.7.0_51 x64 on Windows 8.1

I have the following SQL, which works perfectly:

select substr(to_char(tot_amount), 0, 1) as digit, count(*)

from transactions

where tot_amount <> 0

group by substr(to_char(tot_amount), 0, 1)

order by digit;

However, SQL Developer is yellow-underlining the first line, telling me that:

SELECT list is inconsistent with GROUP BY; amend GROUP BY clause to: substr(to_char(rep_tot_amount), 0, 1), substr(to_char(rep_tot_amount),

which is clearly wrong.

Message was edited by: JamHan Added code formatting.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 3 2014
Added on Jan 31 2014
3 comments
8,887 views