473,471 Members | 1,905 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

sql performance

2 New Member
Select
T3.position_id,
T1.pr_postn_id,
T5.sales_org_cd,
T1.last_upd,
T14.row_id,
T1.pr_rep_sys_flg,
T7.conflict_id,
T1.division,
T7.last_upd,
T15.name,
T3.row_id,
T7.attrib_06,
T1.disa_cleanse_flg,
T16.last_name,
T1.pr_ship_per_id,
T1.created_by,
T8.last_name,
T10.addr,
T10.zipcode,
T1.loc,
T1.pr_rep_dnrm_flg,
T3.accnt_loc,
T1.conflict_id,
T1.pr_addr_id,
T1.pr_terr_id,
T1.main_ph_num,
T1.pr_rep_manl_flg,
T1.par_ou_id,
T1.curr_pri_lst_id,
T1.pr_prtnr_ou_id,
T16.row_id,
T8.row_id,
T1.created,
T1.x_migrt_jde_flg,
T1.x_is_flg,
T1.pr_srv_agree_id,
T7.created,
T3.accnt_name,
T1.row_id,
T2.pr_emp_id,
T14.prtnr_ou_id,
T1.dedup_token,
T1.location_level,
T1.pr_ou_type_id,
T1.par_duns_num,
T1.x_bpcs_division,
T4.x_unit_type,
T7.attrib_04,
T1.x_pr_buy_grp_id,
T10.country,
T1.ou_num,
T9.row_id,
T8.fst_name,
T1.duns_num,
T1.bu_id,
T2.row_id,
T1.hist_sls_vol,
T1.base_curcy_cd,
T7.created_by,
T12.name,
T1.region,
T1.expertise_cd,
T13.country,
T1.ptntl_sls_exch_dt,
T13.city,
T6.loc,
T1.main_fax_ph_num,
T3.row_status,
T1.name,
T7.row_id,
T13.addr,
T1.modification_num,
T13.zipcode,
T2.row_id,
T1.pr_indust_id,
T1.ou_num_1,
T10.state,
T7.attrib_23,
T1.x_dflt_warehouse,
T7.par_row_id,
T10.county,
T1.url,
T17.city,
T11.prtnr_ou_id,
T7.attrib_34,
T5.name,
T17.addr,
T9.name,
T7.attrib_05,
T16.fst_name,
T13.row_id,
T2.name,
T3.asgn_sys_flg,
T6.name,
T1.pr_bl_addr_id,
T1.pr_rep_asgn_type,
T1.cust_stat_cd,
T7.attrib_10,
T10.row_id,
T1.x_dt_last_srvy,
T1.ptntl_sls_curcy_cd,
T1.last_upd_by,
T17.country,
T10.city,
T1.pr_bl_per_id,
T13.state,
T17.state,
T7.attrib_07,
T1.ou_type_cd,
T1.pr_syn_id,
T3.asgn_dnrm_flg,
T11.row_id,
T1.pr_ship_addr_id,
T7.attrib_18,
T7.modification_num,
T10.county,
T17.zipcode,
T9.x_unit_type,
T17.row_id,
T7.last_upd_by,
T1.asgn_ph_cc,
T18.login,
T1.ptntl_sls_vol,
T1.lang_id,
T1.hist_sls_exch_dt,
T3.asgn_manl_flg
From
Siebel.s_org_ext T1
Inner Join Siebel.s_postn T2 On T1.pr_postn_id = T2.row_id
Inner Join Siebel.s_accnt_postn T3 On T1.pr_postn_id = T3.position_id And T1.row_id = T3.ou_ext_id
Left Outer Join Siebel.s_indust T4 On T1.pr_indust_id = T4.row_id
Left Outer Join Siebel.s_org_int T5 On T1.bu_id = T5.row_id
Left Outer Join Siebel.s_org_ext T6 On T1.par_ou_id = T6.row_id
Left Outer Join Siebel.s_org_ext_x T7 On T1.row_id = T7.par_row_id
Left Outer Join Siebel.s_contact T8 On T1.pr_ship_per_id = T8.row_id
Left Outer Join Siebel.s_indust T9 On T1.pr_indust_id = T9.row_id
Left Outer Join Siebel.s_addr_org T10 On T1.pr_addr_id = T10.row_id
Left Outer Join Siebel.s_org_rel T11 On T1.pr_prtnr_ou_id = T11.row_id
Left Outer Join Siebel.s_org_ext T12 On T11.prtnr_ou_id = T12.row_id
Left Outer Join Siebel.s_addr_org T13 On T1.pr_ship_addr_id = T13.row_id
Left Outer Join Siebel.s_org_rel T14 On T1.x_pr_buy_grp_id = T14.row_id
Left Outer Join Siebel.s_org_ext T15 On T14.prtnr_ou_id = T15.row_id
Left Outer Join Siebel.s_contact T16 On T1.pr_bl_per_id = T16.row_id
Left Outer Join Siebel.s_addr_org T17 On T1.pr_bl_addr_id = T17.row_id
Left Outer Join Siebel.s_employee T18 On T2.pr_emp_id = T18.row_id
Where
((t1.ou_num_1 Like '92%') And Ucase(t1.ou_num_1) = Ucase(cast('9290163' As Varchar(4000))))
Order By
T1.name, T1.loc;
Aug 29 '06 #1
1 1593
raj
2 New Member
this is running in udb 6.1 in udb, giving pain
Aug 29 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

25
by: Brian Patterson | last post by:
I have noticed in the book of words that hasattr works by calling getattr and raising an exception if no such attribute exists. If I need the value in any case, am I better off using getattr...
12
by: Fred | last post by:
Has anyone a link or any information comparing c and c++ as far as execution speed is concerned? Signal Processing algorithms would be welcome... Thanks Fred
12
by: serge | last post by:
I have an SP that is big, huge, 700-800 lines. I am not an expert but I need to figure out every possible way that I can improve the performance speed of this SP. In the next couple of weeks I...
6
by: teedilo | last post by:
We have an application with a SQL Server 2000 back end that is fairly database intensive -- lots of fairly frequent queries, inserts, updates -- the gamut. The application does not make use of...
5
by: Scott | last post by:
I have a customer that had developed an Access97 application to track their business information. The application grew significantly and they used the Upsizing Wizard to move the tables to SQL...
115
by: Mark Shelor | last post by:
I've encountered a troublesome inconsistency in the C-language Perl extension I've written for CPAN (Digest::SHA). The problem involves the use of a static array within a performance-critical...
13
by: bjarne | last post by:
Willy Denoyette wrote; > ... it > was not the intention of StrousTrup to the achieve the level of efficiency > of C when he invented C++, ... Ahmmm. It was my aim to match the performance...
13
by: Bern McCarty | last post by:
I have run an experiment to try to learn some things about floating point performance in managed C++. I am using Visual Studio 2003. I was hoping to get a feel for whether or not it would make...
7
by: Michael D. Ober | last post by:
When calling Enqueue, the internal array may need to be reallocated. My question is by how much? In the old MFC array classes, you could tell MFC how many additional elements to add to the array...
1
by: jvn | last post by:
I am experiencing a particular problem with performance counters. I have created a set of classes, that uses System.Diagnostics.PerformanceCounter to increment custom performance counters (using...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.