oracle - SQL issue with parenthesis -


i'm getting error while processing query:

select * example pri in (     select pri     (         select pri             ,sbst             ,st             ,count(*) cnt         example         sbst = 'oi'         group pri         ) tmp     cnt = 1         , st = 'ko'     ) , sbst = 'cp'; 

the error following:

ora-00907: missing right parenthesis 00907. 00000 - "missing right parenthesis" *cause:
*action: error @ line: 5 column: 136

but don't think missed parenthesis.

probably need group pri, sbst, st

select *  example  pri in  (     select pri           (         select  pri,                  sbst,                  st,                  count(*) cnt          example          sbst = 'oi'          group pri,                   sbst,                   st     ) tmp      cnt = 1 , st = 'ko' ) , sbst = 'cp'; 

Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -