Help linking 3 tables

I have two different tables with the same field in it.
Table 1 (current) contains DEPT #
Table 2 (historic) contains DEPT #
Table 3  contains DEPT NAME
When I try to add all 3 fields to a one report. It either names the current DEPT or the historic DEPT depending on how I link the tables.  Is there a way to link the tables to name each DEPT# even if they are different?
Here is what I am getting when I run my report:
DEPT # (current)    DEPARTMENT NAME            DEPT#(historic)        DEPARTMENT NAME
1111B                     Human Resources                  2222B                    Human Resources
I want it to show like this:
DEPT # (current)    DEPARTMENT NAME            DEPT#(historic)        DEPARTMENT NAME
1111B                     Human Resources                  2222B                    Payroll Department
Any help would be appreciated.  Thank you.

Well if that's the case you should also have an Employee table as well... Or there should at least be employee numbers in each of the current / historical tables.
So IF there's an Employee Table:
EmployeeTable
LEFT OUTER JOIN Current Linked on EmployeeTable.EmployeeID = Current.EmployeeID (with EmployeeTable on the left)
LEFT OUTER JOIN Historical Linked on EmployeeTable.EmployeeID = Historical.EmployeeID (with EmployeeTable on the left)
LEFT OUTER JOIN DeptNameTable ON Current.Dept# = DeptNameTable.Dept# (with Current on the left)
LEFT OUTER JOIN DeptNameTable_2 ON Historical.Dept# = DeptNameTable_2.Dept# (with Historical on the left)
Yes... you'll be adding DeptNameTable twice.
If there is no EmployeeTable  then just start with Current and link Historical directly to it using the EmployeeID (the thought being that there won't be any historical if there isn't a current...).
HTH,
Jason

Similar Messages

  • The Help Link from the Application Pages Does not Work for Peoplesoft Campus Solutions 9.0

    Hi everyone.
    I have a problem, I have been trying to set up the Help Link from the Application Pages for Peoplesoft Campus Solutions 9.0 according to the instructions given in the Document: http://docs.oracle.com/cd/E17566_01/epm91pbr0/eng/psbooks/EnablingtheHelpLinkfromApplicationPages.pdf ,  (referenced in the Doc ID 1289101.1, E-PB: How to Set Up the Context Sensitive Help with Hosted PeopleBooks using Universal Linking).
    I follow the instructions of that document carefully:
    I go to: PeopleTools -> Web Profile -> Web Profile Configuration
        2. Then I choose the Web Profile: "Development".
        3. Then Change the value for the Help URL field by entering the following URL format: http://www.oracle.com/pls/topic/lookup?id=%CONTEXT_ID%&ctx=hrcs90r5 , the ctx parameter selected is the one that correspond to  the Campus Solutions (hrcs90r5) according to the Product Line Code Table (ULinkID) especified in the mentioned document.
        4. Stop the Web Domain and Clear cache.
        5. Start the Web Domain again.
    After setting up the Web Profile Configuration I test the help links, thas is why I click in the Help link in any Peoplesoft CS 9.0 Application Page (modify a person), but the next error message appears: "We're sorry, the topic you requested was not found.".
    I tried many combinations with the ctx parameters URL but it does not work yet. 
    I did the same test, but this time using the Help URL field with a HRMS ctx parameter by entering the following URL format: http://www.oracle.com/pls/topic/lookup?id=%CONTEXT_ID%&ctx=hcm92pbr5 , and It works fine !!!
    According to the previous test you realize that It works with HRMS ctx parameter but not with Campus Solutions 9.0 ctx parameter,  Does anybody know what else can I do ? Am I doing anything wrong or missing? or maybe the Oracle's ctx parameter for Campus Solutions URL It is broken simply.
    Thanks for you help and feedback.

    2799444 - The page you are testing with appears to be a Workforce Administration page. Is that correct?
    The CS PeopleBooks would only work for CS pages, e.g.: try navigating to Main Menu > Campus Community > Personal Information > Add/Update a Person
    Also, you can use multiple ctx parameters:
    E.g.: http://www.oracle.com/pls/topic/lookup?id=%CONTEXT_ID%&ctx=hrcs90r5&ctx=hcm92pbr5&ctx=pt852pbh2
    This way the help would work for the HR related pages like Workforce Administration, Campus Solutions pages like Campus Community and also PeopleTools pages like Web Profile Configuration. Hope this clarifies your question. Thanks!

  • Linking Access tables, creating a query with using both Access and Oracle

    Hello,
    I am using 3.0.04.34 version Oracle Developer. I am supposed to create a script/procedure to use both Access tables and oracle tables together. There is an option in developer to copy the access tables into oracle. But it doesn't help me. Because when we updated the access tables
    the copied ones are not be updated. How can I created a linked access tables to oracle and create a query with using both access and oracle table together.
    I will appreciate if you guys help me. I look forward to hearing from you guys.
    Thanks,
    Pinar

    Pinar,
    to be able to query MS Access tables in Oracle you need an additional product, the Oracle Database Gateway for ODBC. It allows you to link any foreign database into an Oracle database using a suitable ODBC driver. You can then access the MS Access tables through a database link based on the Database Gateway for ODBC. This will also allow you to join local Oracle and remote MS Access tables from your Oracle database.
    There's a note on My Oracle Support which gives you more details:Document 233876.1 Options for Connecting to Foreign Data Stores and Non-Oracle Databases - For example - DB2, SQL*Server, Sybase, Informix, Teradata, MySQL
    And there's also a dedicated Forum: Heterogeneous Connectivity

  • Linking SD tables in SAPquery

    Hi Everyone,
    I'm in the middle of creating a SAPQuery for my users to use. However, i am having trouble in linking a particular table, as i get the following error message:
    "Table KONV cannot be used in a join"
    What i am trying to do is to link SD tables VAPMA, VBRP, VBRK, KNA1 with KONP. The problem now is that i am unable to link KONP with the earlier mentioned tables, so i need to include another new table KONV to provide a link between them.
    From what i can find out in SE11, KONV is a cluster table, so does it mean there is no way to link them?
    Is there any other way to link those 4 earlier tables i mentioned with KONP?
    Thanks in advance

    Hi Bernard,
    Please check this link perhaps it may help to link above tables.
    http://www.sapgenie.com/abap/tables_sd.htm
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • Query for Linking Two Tables without Reference

    Hi Folks,
    Good Day!
    I have this dilemma on how to link two tables without a reference. In the Business Partner Master Data, there is a field for the Territory which is from the table OTER. This OTER focuses on its description. Once you have added the particular Territory for that Business Partner, it is being stored in the Territory field of the BP right? Our client wants to have an automated way of searching for the Business Partner's Profit Center in creating a Sales Order wherein it is the same as the Business Partner's Territory. The Profit Center is from the table OPRC.
    When I create a Sales Order, after I have entered the Business Partner/Customer Code, the Profit Center should have the value of the Profit Center Code wherein it is the Business Partner's Territory. My query will go like this:
    Enter the BP/Customer Code automatically the Profit Center code where Profit Name = BP's Territory.
    OTER and OCRD don't have connections. How can it be?
    I'm thinking of retrieving the Territory first before the Profit Center but can you suggest of any other way?
    Thank you much!
    Regards,
    Fringe

    Hi Fringe,
    Okay, I already understood your case here. I presume your configuration as follows:
    OTER (Territory)
    territryID - descript
    1 - Philippine
    2 - Indonesia
    3 - Germany
    OPRC (Cost Centre)
    PrcCode - PrcName
    25 - Philippine
    33 - Indonesia
    47 - Germany
    Was above illustration correct? Then, you could use this formatted search in Cost Centre / Dimension field in Sales Order rows
    SELECT PrcCode FROM OPRC WHERE PrcName=(
    SELECT TOP 1 descript FROM OTER T0
    INNER JOIN OCRD T1 ON T0.territryID=T1.Territory
    WHERE T1.CardCode=$[OCRD.CardCode.0])
    However, I suggest you use a little bit different approach here. Since you can't define Territory Code / Territory ID (you could only type the Territory name, Philippine etc.), why don't you standardize Territory name with Cost Centre code? Let say, you define Philippine as PHI, Indonesia as INA, Germany as DEU and so on. Therefore, user can read the Cost Centre or more precisely Distribution Rules in Sales Order form in more familiar way.
    OTER (Territory)
    territryID - descript
    1 - PHI
    2 - INA
    3 - DEU
    OPRC (Cost Centre)
    PrcCode - PrcName
    PHI - Philippine
    INA - Indonesia
    DEU - Germany
    When FMS worked in Sales Order document, your user will read PHI instead of 25, should be more familiar to them. With that being said, you could use simpler FMS
    SELECT descript FROM OTER T0
    INNER JOIN OCRD T1 ON T0.territryID=T1.Territory
    WHERE T1.CardCode=$[OCRD.CardCode.0]
    You only need to maintain consistency between Territory Name and Cost Centre code. Just my two cents. Hope this help.
    Best Regards,
    Hendry Wijaya

  • Link fact tables?

    hi all,
    I have two fact tables – charges and payments and both these fact tables are in the cube (as measure groups). On the relational side, these two fact tables are “linked” by a column called trans_no. Linking these two tables could be little tricky because
    a single charge can have multiple payments.
     for example, let’s say there was a charge of 100$ but the payment was done in two installments so there is one row in the charge fact table, but 2 rows in the payment fact table – both rows have the same transaction number but different date.
    It is also possible to have two charges in the charge fact table with the same transaction number but one payment in the payment fact table. So I think this is a many-to-many relationship.
    How can I link these tables in SSAS? I would to be able to show payments and charges side by side down to the transaction level. Please advise and thanks for the help.

    thank you Ken, so i am going to have  dimensions then? -
    1. off of payments
    2. off of charges
    3. "Transaction" dimension
    The reason i am saying i need #1 and #2 is because i need some other attributes such as "transaction type"(void etc) from both the fact tables. does this sound correct? i feel like i am cluttering the cube :(

  • Link in tables for characteristic of a materials in VA03

    Hi Experts,
    I have to create a report in which i have to show few charateristics of a material which is in items of a sales order in transaction VA03. i.e Select a material & click on item detail:configuration buttob below that item detail table control.
    It wil open a new table control which wil show the charateristics like color etc. I have to show those in my report but i am not getting where these values are stored & how to relate those values to the sales order.
    I found few tables like CABN, CAWN etc but no one links to the Sales order number.
    Please tell me by which field i can link these tables to my sales order number.
    Regards,
    Nik

    Get the CUOBJ field from VBAP table.
    Pass this to INSTANCE variable  to the FM VC_I_GET_CONFIGURATION.
    Characteristics of a material can be determined using
    CUD0_CONFIGURATION_FROM_DB or
    CUD0_GET_CHARACTERISTICS.
    Hope this helps.
    Thanks,
    Balaji

  • Attach search help to standard table field

    Hi,
    I need to attach search help to standard table field VBKD-EMPST.
    I have create a z search help and taken acess key from SAP.
    But unable to attach this to standard table field.
    Kindly help.
    Moderator message: duplicate post locked.
    Edited by: Thomas Zloch on Oct 27, 2010 6:11 PM

    Hi,
    just go throw this link
    Re: Attaching Search Help to a field
    I hope this will help u
    Thanks
    Regards
    Akhilesh Singh

  • Link between tables J_1IEXCDTL and BSEG

    Hai,
    Can someone tell me how I can link the tables J_1IEXCDTL(CIN Table) and BSEG.
    Please help.
    Thanks in advance
    Binoo

    You could create and ABAP Query infoset and create your tables links there. Or you can create an ABAP dictionary view.

  • Help on JTF table structures

    I'm hoping someone can help me understand the JTF RS structures. I have to derive the manager of a collector and have gotten as far as understanding that a collector can be a group or an individual and that there is a group members table and the resource table. However, I am having trouble understanding the different layers of the jtf_rs_role_relations (RS_INDIVIDUAL, RS_TEAM_MEMBER, RS_GROUP, RS_GROUP_MEMBER) and to determine how to get from the collector as an individual or group to the manager on the role table. ( I have also understood how to determine which role_id is a manager, so that is not an issue)
    Can anyone help me or does anyone know of documenation?

    role_resource_id holds the key to link other tables.
    start with jtf_rs_role_relations tabe.
    If the role_resource_type is RS_GROUP then jtf_rs_role_relations. role_resource_id =jtf_rs_groups_b.group_id
    If the role_resource_type is RS_GROUP_MEMBERS then jtf_rs_role_relations. role_resource_id =jtf_rs_group_members.group_member_id
    If the role_resource_type is RS_INDIVIDUAL then jtf_rs_role_relations. role_resource_id =jtf_rs_resource_extns.resource_id
    If the role_resource_type is RS_TEAM then jtf_rs_role_relations. role_resource_id =jtf_rs_teams_b.team_id
    If the role_resource_type is RS_TEAM_MEMBER then jtf_rs_role_relations. role_resource_id =jtf_rs_team_members.team_memeber_id
    But all depends on how your hierarchy is modeled. What ever may be the case collectors are ultimately the resources (can be employees or temps).
    Thanks
    Nagamohan

  • Query to get list of linked server tables referenced inside a stored procedure

    Hi,
    SQL Server 2005 sp4
    I have a requirement to get list of linked server tables referenced insider a stored procedure
    Ex:
    Databases       DB1          DB2
    Tables:            T1             T2                            
    Use DB1
    Go
    Create proc P1
    begin
    select * from T1
    select * from DB2.dbo.T2
    end
    I am looking for a query which can return a result with output as below. sp_depends is not helping here as it does not work for cross DB objects, any other thoughts.
    Tables
    T1,
    DB2.dbo.T2

    On SQL 2005, you will have to do it manually.
    On SQL 2008 or later, you could have used sys.sql_expression_dependencies.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • To link two tables in ap

    hi
    could someone pls guide me to link ap_invoices_all table with gl_code_combinationsthanking in advance
    Edited by: makdutakdu on Oct 14, 2010 12:15 PM

    Hello.
    Use the following query (R11i):
    SELECT i.invoice_num "Invoice Nr.",
    c.segment1 "Segment1",
    l.ae_line_type_code "Line Type",
    l.accounted_dr "Debit",
    l.accounted_cr "Credit"
    FROM ap_ae_lines_all l, ap_ae_headers_all h, ap_invoices_all i, ap_accounting_events_all e, gl_code_combinations c
    WHERE e.source_table = 'AP_INVOICES'
    AND i.invoice_num = '<your invoice nymber>'
    AND l.ae_header_id = h.ae_header_id
    AND e.accounting_event_id = h.accounting_event_id
    AND e.source_id = i.invoice_id
    AND l.code_combination_id = c.code_combination_id
    AND i.org_id = <your org_id>
    As you may have more than one invoice with the same number, the query may return more lines then expected. To restrict it, enter the vendor_id from table AP_INVOICES_ALL.
    Hope this helps.
    Octavio
    Edited by: Octopus Rex on Oct 14, 2010 4:10 AM

  • Linking One table with more then one tablespace

    Hi,
    Can anybody help to link one table to more then one tablespace?
    Thanks in advance.

    If the table is not partitionned you cannot store a table in different tablespaces. If the table is partitionned you can store each partition in a different tablespace. Example from 10.2 Data Warehousing Guide:
    CREATE TABLE sales_composite
    (salesman_id  NUMBER(5),
    salesman_name VARCHAR2(30),
    sales_amount  NUMBER(10),
    sales_date    DATE)
    PARTITION BY RANGE(sales_date)
    SUBPARTITION BY HASH(salesman_id)
    SUBPARTITION TEMPLATE(
    SUBPARTITION sp1 TABLESPACE ts1,
    SUBPARTITION sp2 TABLESPACE ts2,
    SUBPARTITION sp3 TABLESPACE ts3,
    SUBPARTITION sp4 TABLESPACE ts4)
    (PARTITION sales_jan2000 VALUES LESS THAN(TO_DATE('02/01/2000','MM/DD/YYYY'))
    PARTITION sales_feb2000 VALUES LESS THAN(TO_DATE('03/01/2000','MM/DD/YYYY'))
    PARTITION sales_mar2000 VALUES LESS THAN(TO_DATE('04/01/2000','MM/DD/YYYY'))
    PARTITION sales_apr2000 VALUES LESS THAN(TO_DATE('05/01/2000','MM/DD/YYYY'))
    PARTITION sales_may2000 VALUES LESS THAN(TO_DATE('06/01/2000','MM/DD/YYYY')));Edited by: P. Forstmann on 13 févr. 2010 09:08

  • I lost my tool bar on top. I no longer can see the Bookmarks, Tools, or Help links. Where are they and how can I reset them? I had them at first but now I don't see them.

    I lost the tool bar on top. I can no longer see the Bookmarks, Tools, or Help links. I had them in when I began with your browser but now they're gone. How do I restore the default toolbar?

    * In Firefox 3.6 versions on Windows and Firefox 4 on Windows and Linux it's possible to hide the "Menu Bar" via "View > Toolbars" or via the right-click context menu of a toolbar.
    * Press F10 or press and hold the Alt key down to bring up the "Menu Bar" temporarily.
    * Go to "View > Toolbars" or right-click the "Menu Bar" or press Alt+V T to select which toolbars to show or hide (click on an entry to toggle the state).
    See also:
    * [[Menu bar is missing]]
    * http://kb.mozillazine.org/Toolbar_customization

  • Issue while adding Help Link using personalization

    Hi... i am adding a help links on all the iRec pages using personalization.
    Requirment:-
    Need to have a help link on all the pages of iRec at the left corner of the page
    So i made the following changes to do this...
    1. Created a new Region(This regios is shared by all the pages of iRec)
    StackLayout (AM set to deflaut value)
    |_
    RowLayout (Horz Align set to end)
    2. Now i go to the page, click on personalize link at top, and create a new Stack Layout Region below the PageLayoutRN for the Page
    and set the extend property of this StackLayout to my above create region.
    3. Create a new item under RowLayout, Item Type "Link" and set the destination URI for this link to say "http://google.com"
    I do the same steps above on all the pages of iRec and point the destination URI for the link to the one i want to set and all this is done at Site level.
    But the issue i am getting is that i am not able to see these personalizations for all the users and at some places the links i created are not clickable. They simply display on the page but cannot be clicked.
    Is there something i am doing wrong? so is there any step i did wrongly? Please let me know the solution.
    Thanks
    Sandeep

    It should not be show this behavior. one test you can do in this reference create Two more item at site level say MessageStyleText and one more link and check this behavior to all the user.

Maybe you are looking for

  • Error when scheduling job for Job Control LO

    Hi all, I tried to schedule the job for collective update after I set the job parameter in tcode LBWE for LO Data Extraction. But they said 'Error generating job' without any description why. Maybe you can help me about this since I still can't do th

  • 11G table appears to have "No data found" after its creation.

    After the creation of the following table I cannot look up the structure of the table when clicking on "find table". Usually there needs not be any data inserted in to the table in order to just view its structure. Is there something wrong? CREATE TA

  • Creating an applet popup

    Hi everyone. I'm pretty new at Java programming, and I started making a simple game. One of the things that I would like players to be able to do is type in the word "map" on the DOS screen or something, and have an applet pop up, and when a player c

  • Where can I search for and delete duplicate files music and photos?

    I have used about 200gb on music and photos.  I want to delete them but have no clue where to find them. 100gb seems about rights I just can find the duplicates.....

  • [HELP] Nokia X6 (8GB) Doesn't switch on.

    Hey guys, Well, my Nokia X6 - 8GB phone (Internal Memory) doesn't seem to start/switch on. It was working fine till today afternoon. The next time I tried using the phone, it was off. I tried switching it on but didn't work. My attempts: 1. Removed S