Skip to Main Content

APEX

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!

Error: ORA-00911: invalid character. Where is the character?

KAISSERAug 27 2015 — edited Aug 27 2015

Hello everyone,

As I wrote in the subject, I have written the next code but I am getting the error aforementioned.

Could someone tell me where are the mistakes? Mainly because the console does not specify where it is.

------------------------------------------------------------------------------------------

select case when ((select EMPRESA

                   from   B_LISTA_EMPLEADOS

                   where  USERNAME = 'ADMIN')) = 'IMASA'

            then ((select JORNADA_ANUAL

                   from B_JORNADAS_Y_RATIOS

                   where  CATEGORIA = (( 

                                       select CATEGORIA

                                       from B_LISTA_EMPLEADOS 

                                       where USERNAME = 'ADMIN' 

                                       ))

                   and EMPRESA =       (( 

                                       select EMPRESA

                                       from B_LISTA_EMPLEADOS

                                       where USERNAME = 'ADMIN' 

                                       ))

                  and AÑO = '2013'

                  ))

            else 'No es un empleado de la empresa'

        end case;


as Jornada

from B_JORNADAS_Y_RATIOS

------------------------------------------------------------------------------------------

Best regards

This post has been answered by Jagadekara on Aug 27 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 24 2015
Added on Aug 27 2015
8 comments
559 views