Sei sulla pagina 1di 4

How To Create a Join to a Table Through Another Table

http://it.toolbox.com/blogs/siebel-answers/how-to-create-a-join-to-a-table...

My Home
Home

Topics
Groups

People
Wiki

Companies
Communities

White Paper Library


White Papers Q&A and Docs Directory Events

Search Toolbox.com
Subscriptions

Blogs

Review Top 19 CRM Vendors | www.CompareCRMVendors.com


www.CompareCRMVendors.com
Toolbox for IT Topics Siebel Blogs

Ads by Google

See Cost Estimates, Features Scalability & More. Free Download!

How To Create a Join to a Table Through Another Table


Joshua Weir Oct 17, 2008 | Comments (3)

Tweet

Recommend

Share

Lets say that you want to create a join field "Country" on the Service Request business component (based on the S_SRV_REQ table) where the "Country" field exists on table S_ADDR_ORG but there is no direct foreign key relationship between S_SRV_REQ and S_ADDR_ORG to create the join. The relationship is as such: (Service Request BC) S_SRV_REQ.REQUESTOR_ID -> S_ORG_EXT.ROW_ID -> S_ADDR_ORG.OU_ID (Address table with Country column) Therefore the Service Request is joined to S_ORG_EXT directly through foreign key REQUESTOR_ID and then the "Requestor" (S_ORG_EXT) is joined to the Address (S_ADDR_ORG). It is straight forward to create business component joined fields that involve more than one tables as in the above case. You need to create the joined fields one by one. For the above example if you wanted to create a joined field for S_ADDR_ORG.COUNTRY on the Service Request BC you would firstly need to create a joined field to S_ORG_EXT.ROW_ID. Then you would create a joined field using the joined field (S_ORG_EXT.ROW_ID) as the source field for the S_ADDR_ORG.COUNTRY joined field. 1. In Siebel Tools, Service Request BC > Join > Create a new record with: Table: S_ORG_EXT Alias: Requestor Outer Join Flag: Y Then in Join Specification for that Join: Name: Requestor Destination Column: ROW_ID Source Field: Requestor Id 2. Service Request BC > Field > Create a new field with:

Answers for Siebel Developers


by Joshua Weir

This blog is a technical information source for Siebel developers, providing insight into best practices, common siebel ... more Receive the latest blog posts:
Your email address FOLLOW

Share Your Perspective


Share your professional knowledge and experience with peers. Start a blog on Toolbox for IT today! BEGIN NOW

Categories GO

Links

Name: Requestor Joined Id Join: Requestor Column: ROW_ID


New to Toolbox? Ask A Question Join

My LinkedIn Profile Siebel Essentials @ Blogspot Siebel Mantra QTP Blog

1 of 4

5/29/2013 10:15 PM

How To Create a Join to a Table Through Another Table

http://it.toolbox.com/blogs/siebel-answers/how-to-create-a-join-to-a-table...

3. Service Request BC > Join > Create a new record with: Table: S_ADDR_ORG Alias: Requestor Address Outer Join Flag: Y Then in Join Specification for that Join: Name: Requestor Address Destination Column: OU_ID Source Field: Requestor Joined Id 4. Now create the joined field for Country. Service Request BC > Field > Create a new field with: Name: Requestor Country Join: Requestor Address Column: COUNTRY You may now be aware that I did not need to create two joins I could have joined S_SRV_REQ.REQUESTOR_ID to S_ADDR_ORG.OU_ID however I wanted to show the fact that you could join through multiple tables as an example.

Metatrader Automated Forex Development - MQL4 Community Another QTP Blog

Joshua Weir Oracle certified consultant.

Read 3 comments

Popular White Paper On This Topic Beyond Excel: Taking Business Intelligence to the Next Level Related White Papers 2011 Trends Report: Customer Relationship Management 2011 Focus Experts Guide to CRM for Growing Midsize ... Best Practices for an On-Demand CRM Implementation

More White Papers

3 Comments
Mario Quiroz Sep 22, 2009

Hi Joshua I'm new using Siebel 8.1, actually I'm having problems understanding the relationships between Row_id, Par_row_id, and other id columns as you mentioned above. Does exist a entity relationship that show the references between tables?
Joshua Weir Sep 24, 2009

I dont know of an entity relationship diagram in Siebel Bookshelf that shows all the references. ROW_ID is the primary key for each table. PAR_ROW_ID exists on a table if the table can be a child in a 1:M relationship. The PAR_ROW_ID is the foreign key column pointing to the ROW_ID of the parent table. Any table that has _XM as the last characters of the table name is an MVG (multi value group) table. These tables hold the child records in a 1:M relationship. It is usually easy to determine the parent because the name is similar. For example S_CONTACT is the parent Contact table and S_CONTACT_XM is the MVG table for Contact. S_CONTACT_XM.PAR_ROW_ID = S_CONTACT.ROW_ID for this relationship. S_CONTACT_X is an extension table of S_CONTACT. This has a 1:1 relationship with S_CONTACT through join: S_CONTACT.ROW_ID = S_CONTACT_X.PAR_ROW_ID. Any tables with _X as the last characters in table name are 1:1 extension tables. This is how Siebel tables are commonly structured. Except there is one table called S_PARTY this is the parent table of S_CONTACT, S_ORG_EXT, S_POSTN (Contacts, Organizations, Positions) so S_CONTACT.PAR_ROW_ID = S_PARTY.ROW_ID and S_ORG_EXT.PAR_ROW_ID = S_PARTY.ROW_ID. Read more about this in the Siebel Bookshelf. You are best to understand the entity relationships by using Siebel Tools, in Siebel Tools Object Explorer, click on Table and expand the Table icon and click on Column. All columns for a table are listed here. If the Column is a foreign key to another table then the "Foreign Key Table" property of the column will be populated with the foreign key table.

New to Toolbox?

Ask A Question

Join

2 of 4

5/29/2013 10:15 PM

How To Create a Join to a Table Through Another Table

http://it.toolbox.com/blogs/siebel-answers/how-to-create-a-join-to-a-table...

rajesh sigilipelli Oct 13, 2010

How comfortable are you in Siebel tools to get the understanding of the Tables and joins

Leave a Comment

Connect to this blog to be notified of new entries. PREVIEW You are not logged in. Sign In to post unmoderated comments. Join the community to create your free profile today. SUBMIT

Want to read more from Joshua Weir? Check out the blog archive.
Archive Category: Siebel Configuration Keyword Tags: siebel join multiple join relationship
Disclaimer: Blog contents express the viewpoints of their independent authors and are not reviewed for correctness or accuracy by Toolbox for IT. Any opinions, comments, solutions or other commentary expressed by blog authors are not endorsed or recommended by Toolbox for IT or any vendor. If you feel a blog entry is inappropriate, click here to notify Toolbox for IT.

From Around The Web

15 Things You Should Never Do at Your Desk


(Salary.com)

U.S. Moves Up in Worldwide Average Internet Speed Rankings


(Cable Tech Talk)

If You're Using Gmail, you Should try This!


(Tuaw)

The 30 Hottest Female Athletes We Can Follow on Instagram


(Rant Sports)

Pet Scoop: Dog With Human-Like Face Goes Viral, Actor Arrested at Research Protest
(Vetstreet)

Microsoft confirms Windows 8.1 (a.k.a "Blue") will be free


(PC World)

What Is the Best Email Service for You?


(DexKnows)

5 Things Not to Do in National Parks


(AARP.org)

Recommended by

We Recommend
A Mainframe SOA Strategy SAP Training Manuals Microsoft or Local account when setting up Windows 8? New to Toolbox? Ask A Question

From Around The Web


How to get over $1,000 worth of freebies per year! (Freeflys) Obama Pulls the Plug on Long-Term Health Care Program (The Fiscal Times) Windows Blue wish list: 15 must-see Join

3 of 4

5/29/2013 10:15 PM

How To Create a Join to a Table Through Another Table

http://it.toolbox.com/blogs/siebel-answers/how-to-create-a-join-to-a-table...

Physical Architecture Models (Deliverable) Replace Your PBX with VoIP? Data Flow Diagrams (DFDs)

improvements (PC World) Fact Sheet: What the Health Care Law Does Now for People Age 50 to 64 (AARP) Treehouse Show Episode 10 jQuery Fundamentals (Treehouse Blog)
Recommended by

Ads by Google
Siebel Maintenance Unmatched Siebel Expertise and NoForced Upgrades. Contact Us Today! www.RiminiStreet.com/SiebelSupport 2013 Top 20 ERP Systems Top 20 ERP System Ranking Report.Don't Decide on a Vendor without It Business-Software.com/BestERP Try CampaignerCRM Clone your best sales reps.Ideal for 15-250 Reps. Watch Demo. www.CampaignerCRM.com Review Top 19 CRM Vendors See Cost Estimates, FeaturesScalability & More. Free Download! www.CompareCRMVendors.com Syspro Food ERP Solution The Award-Winning Food and BeverageERP Software. Get Demo & Quote Now! www.SYSPRO.com

what's this?

Toolbox for IT My Home Topics People Companies Jobs White Paper Library Collaboration Tools Discussion Groups Blogs Wiki Follow Toolbox.com Toolbox for IT on Twitter Toolbox.com on Twitter Toolbox.com on Facebook

Topics on Toolbox for IT Data Center Data Center Development C Languages Java Visual Basic Web Design & Development Enterprise Applications CRM ERP Infor PeopleSoft SAP SCM Siebel Enterprise Architecture & EAI Enterprise Architecture & EAI Information Management Business Intelligence Database Data Warehouse Knowledge Management Oracle IT Management & Strategy Emerging Technology & Trends IT Management & Strategy Project & Portfolio Management Cloud Computing Cloud Computing Networking & Infrastructure Hardware Mobile & Wireless Networking Communications Technology Operating Systems Linux UNIX Windows Security Security Storage Storage

Toolbox.com About News Privacy Terms of Use Work at Toolbox.com Advertise Contact us Provide Feedback Help Topics Technical Support Other Communities Toolbox for HR Toolbox for Finance

Copyright 1998-2013 Ziff Davis, Inc (Toolbox.com). All rights reserved. All product names are trademarks of their respective companies. Toolbox.com is not affiliated with or endorsed by any company listed at this site.

New to Toolbox?

Ask A Question

Join

4 of 4

5/29/2013 10:15 PM

Potrebbero piacerti anche