I have two tables.
- J_YAD_PICT (table name) , GALLERY_DISP_FLG (column)
- J_YAD_CGR_PICT (table name) , Y_CGR_FLG (column)
when Y_CGR_FLG not null in J_YAD_CGR_PICT, then GALLERY_DISP_FLG needed to set as 1.
I have executed this
Update A
SET A.GALLERY_DISP_FLG = 
  (CASE WHEN b.Y_CGR_FLG IS NOT NULL) THEN '1' 
        ELSE A.GALLERY_DISP_FLG 
   END
FROM J_YAD_PICT A inner join J_YAD_CGR_PICT B 
on A.YP_ID = B.YP_ID;
But given this error :
SQL Error: ORA-00905: missing keyword
Could anyone help me ?
 
     
     
    