SELECT ir.region
,ir.upc
,i_b.nat_upc
,rpdr.region
,rpdr.pos_dept
,ps.pos_dept
,ps.ps_bu
,vsi.upc
,vsi.ps_bu
,store_name
,NVL(i_a.nat_upc,i_b.nat_upc)
,NVL(i_a.long_description,i_b.long_description)
,NVL(i_a.item_size,i_b.item_size)
,NVL(i_a.item_uom,i_b.item_uom)
,vsi.vend_item_num
,ps.ps_prod_subteam
FROM vim.item_region@vim ir
,vim.item_master@vim i_a
,vim.item_master@vim i_b
,vim.reg_pos_dept_ref@vim rpdr
,vim.ps_team_ref@vim ps
,vim.vendor_store_item@vim vsi
WHERE substr(ir.nat_upc, 12, 12)=substr(i_a.nat_upc(+),-12,12)
AND rpdr.pos_dept = ps.pos_dept
AND rpdr.region = ps.region
AND vsi.region = ps.region
AND vsi.v_auth_status = 'P'
===========================================================
SELECT mvmnt_data.region
,wm.upc
,sum(wm.mvmnt_units) AS salesUnits
,sum(wm.mvmnt_dollars) AS salesDollars
,wm.store
,wm.pos_dept
,wm.case_size
,SUM(ROUND (CASE WHEN wm.case_size IS NULL OR wm.case_cost=0 THEN NULL
ELSE (wm.case_cost/wm.case_size) * wm.mvmnt_units end, +3)) AS cost
,s.store_name
FROM stella.mvmnt_wkly wm
,vim.store@vim s
WHERE mvmnt_data.region=ir.region(+)
AND mvmnt_data.upc = ?
AND mvmnt_data.upc = ?
AND mvmnt_data.region = ?
AND mvmnt_data.pos_dept = ?
AND mvmnt_data.store = ?
AND mvmnt_data.upc = ?
AND mvmnt_data.store = ?
AND wm.mvmnt_date between to_date('10/01/2004', 'mm/dd/yyyy') and to_date('10/03/2004', '/mm/dd/yyyy')
AND wm.store in ('10036')
AND wm.store = s.ps_bu
AND wm.pos_dept = '0110'
GROUP BY wm.case_size
,s.region
,wm.pos_dept
,wm.upc
,wm.store
,s.store_name
===========================================================
delete from plan_table where statement_id = 'TEST' / commit /===========================================================
@deleteplan EXPLAIN PLAN set statement_id = 'TEST' for SQL STATEMENT GOES HERE / @getplan===========================================================
select operation, options, object_name, cost, cardinality, TO_CHAR(timestamp, 'HH:MM:SS') from plan_table where statement_id = 'IFXTEST' start with id = 0 connect by prior id=parent_id and prior statement_id = statement_id /===========================================================
In reply to Re^3: Perl CGI timeout
by StrebenMönch
in thread Perl CGI timeout
by jewang
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |