|
[x]
Posted via EE Mobile
|
||
Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
||
| Question |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: |
declare
v_comm varchar2(15000);
begin
insert into pablo_log_temp values ('3s',sysdate);
execute immediate 'truncate table zz_auditbaanprices';
insert into pablo_log_temp values ('3e',sysdate);
for r in (select c.lsemacompanycode from spm.salescountrygroup c
where c.spmenabled = 'Y'
and c.LSEMACOMPANYCODE not in ('412', '420')
order by c.lsemacompanycode
)
loop
insert into pablo_log_temp values ('4s_'||r.lsemacompanycode,sysdate);
v_comm := 'insert into zz_auditbaanprices(lsemacompanycode,pl_code,prod_code,quality_code,size_code,item,value,startdate,ref_date) '||
'select '''||r.lsemacompanycode||''' as lsemacompanycode, '||
's.t$cpls, substr(trim(s.t$item),1,9) as prod_code, '||
'substr(trim(s.t$item),10,1) as quality_code, substr(trim(s.t$item),11,4) as size_code, '||
'trim(s.t$item) as item, '||
's.t$pric, s.t$stdt, case when s.t$stdt <= trunc(sysdate) then trunc(sysdate) else trunc(s.t$stdt) end as ref_date '||
'from baan.ttdsls032'||r.lsemacompanycode||'@beuprd02 s '||
'where s.t$stdt > trunc(sysdate) '||
'or not exists(select ''x'' '||
'from baan.ttdsls032'||r.lsemacompanycode||'@beuprd02 m '||
'where m.t$stdt > s.t$stdt '||
'and s.t$cpls = m.t$cpls '||
'and s.t$item = m.t$item)';
execute immediate v_comm;
commit;
insert into pablo_log_temp values ('4e_'||r.lsemacompanycode,sysdate);
end loop;
commit;
end;
/
|
Advertisement
| Hall of Fame |