SQL Performance (MOSC)

MOSC Banner

improve query performance

edited Jul 29, 2014 11:41AM in SQL Performance (MOSC) 5 commentsAnswered

SQL Query

--------------------------------

SELECT DISTINCT '1' AS

status,

  2 AS

partner_type,

CASE

WHEN f.ship_to_cust_id > ' ' THEN

  f.ship_cust_name1 || '|' || f.ship_to_cust_id

ELSE

  f.ship_cust_name1 || '|' || f.cust_name || '|' || f.location

END AS

partner_name,

  CASE

WHEN f.ship_to_cust_id > ' ' THEN

  f.ship_to_cust_id

ELSE

  f.location

END AS

partner_number,

  2 AS

deleted_flag,

  TRUNC(sysdate) AS

last_update_date,

  'P' AS

sr_instance_code,

  1 AS

process_flag,

  '0' AS

cost_account_number

FROM sysadm.ps_pl_item_attrib a,

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center