Skip to content

Tag: oracle

Execution from the statement select * into return error

Can somebody help me? I am try execute the command below in Oracle 11 and I get this error: SQL Error [905] [42000]: ORA-00905: keyword not found. Code: I read the Oracle docs and haven’t found any obvious error in my statement. https://docs.oracle.com/cd/B19306_01/appdev.102/b14261/selectinto_statement…

count of nulls over a window

I need to get the count of nulls group by ID but excluding the month and sales in group by sample data id custname reportdate sales 1 xx 31-JAN-17 1256 1 xx …

Group By clause changes the results

I have a query like SELECT weeks_ind, weeks_rol, weeks_no, date, CASE WHEN SUM(CASE WHEN rec = ‘Y’ THEN 1 ELSE 0 END) >= 1 THEN ‘Y’ ELSE ‘N’ END “rec”, CASE WHEN (SUM( CASE WHEN glob is null …