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!
Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.
select sum(case when customer_po_number like 'consign-%' then 1 else null end) as test1 ,sum(case when customer_po_number like 'non-consign-%' then 1 else null end) as test2 ,sum(case when customer_po_number like 'REGULAR%' then 1 else null end) as test3 ,sum(case when customer_po_number like 'NON-REGULAR%' then 1 else null end) as test4 from oe_headers_all /
(select count(*) "test1" from oe_headers_all where customer_po_number like 'consign-%') , (select count(*) "test2" from oe_headers_all where customer_po_number like 'non-consign-%') , (select count(*) "test3" from oe_headers_all where customer_po_number like 'REGULAR%') , (select count(*) "test4" from oe_headers_all where customer_po_number like 'NON-REGULAR%') from dual
select count(case when customer_po_number like 'consign-%' then 1 else null end) test1, count(case when customer_po_number like 'non-consign-%' then 1 else null end) test2, count(case when customer_po_number like 'REGULAR%' then 1 else null end) test3, count(case when customer_po_number like 'NON-REGULAR%' then 1 else null end) test4 from oe_headers_all
select sum(CASE WHEN customer_po_number like 'consign-%' THEN 1 ELSE 0 END) "test1", sum(CASE WHEN customer_po_number like 'non-consign-%' THEN 1 ELSE 0 END) "test2", sum(CASE WHEN customer_po_number like 'REGULAR%' THEN 1 ELSE 0 END) "test3", sum(CASE WHEN customer_po_number like 'NON-REGULAR%' THEN 1 ELSE 0 END) "test4" from oe_headers_all where customer_po_number like 'NON-REGULAR%' or customer_po_number like 'REGULAR%' or customer_po_number like 'non-consign-%' or customer_po_number like 'consign-%' ;
select count(case when instr(customer_po_number,'consign-')=0 then 1 else null end) "test1", count(case when instr(customer_po_number,'non-consign-')=0 then 1 else null end) "test2", count(case when instr(customer_po_number,'REGULAR')=0 then 1 else null end) "test3", count(case when instr(customer_po_number,'NON-REGULAR')=0 then 1 else null end) "test4" from oe_headers_all
instr(customer_po_number,'consign-')=0
select case when instr('non-consign','consign')=0 then 'true' else 'false' end from dual
select instr('non-consign-','non-consign-') from dual