Skip to Main Content

SQL & PL/SQL

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!

PL/SQL: SQL Statement ignored error (SELECTing row, arithmetic expression/s)

abigail818Nov 3 2013 — edited Nov 3 2013

Quick question, on running the ff query, I can do

select a.column, sum(decode(a.column,'string',1,'etc...')

But when I include it in a func/procedure, it won't allow me too and would give a  PL/SQL: SQL Statement ignored error and it will only compile if I remove the first a.column like so

select sum(decode(a.column,'string',1,'etc...')

Why is this so? And how should it be re-written to include the select a.column, ?

This post has been answered by Etbin on Nov 3 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 1 2013
Added on Nov 3 2013
7 comments
21,929 views