Access data through table relationship

i have some CMP Entity beans mapped to some pointbase tables. i designed a simple relationship between two tables PERSON and COUNTRY, where PERSON has an integer field that references to the COUNTRY primary key. the COUNTRY table has a string column containing the country's name.
i have PERSON as an entity bean. how can i access the country name instead of the integer id that is passed at get/set? should i create a COUNTRY bean as well and create relationships ? or can i just access the name value using a simple query and return it instead of the class' getter?
thanks in advance.

if i didn't made much sense before when i explained the tables' structure, here it is:
create table country
id SMALLINT NOT NULL,
name VARCHAR(50) NOT NULL,
CONSTRAINT pk_country PRIMARY KEY (id)
create table person
id INTEGER NOT NULL,
first_name VARCHAR(20) NOT NULL,
last_name VARCHAR(20) NOT NULL,
country SMALLINT,
CONSTRAINT pk_id PRIMARY KEY (id),
CONSTRAINT fk_country FOREIGN KEY (country) REFERENCES country(id)

Similar Messages

  • Can I create a Stored Procedure That access data from tables of another servers?

    I'm developing a procedure and within it I'm trying to access another server and make a select into a table that belongs to this another server. When I compile this procedure I have this error message: " PLS-00904: insufficient privilege to access object BC.CADPAP", where BC.CADPAP is the problematic table.
    How can I use more than one connection into an Oracle Stored Procedure?
    How I can access tables of a server from a Stored Procedure since the moment I'm already connected with another server?
    Can I create a Stored Procedure That access data from tables of another servers?

    You need to have a Database Link between two servers. Then you could do execute that statement without any problem. Try to create a database link with the help of
    CREATE DATABASE LINK command. Refer Document for further details

  • How to retrieve data through table by passing date

    hi
    i hv made one table which stores email id & cureent date when entered,
    can anybody tell me how to retrieve data through table by passing today's date to last week date,so it can retrieve all email ids which are entersd in last week.
    thanks

    http://www.google.com/search?&q=sql+tutorial

  • Error in accessing data through external table

    Hi,
    I am getting the following error while trying to view data through external table,
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04062: no data source specified
    ORA-06512: at "SYS.ORACLE_LOADER", line 19
    according to this error "KUP-04062: no data source specified", location should be specified and i have specified the location as
    LOCATION (<diectory_name>:' '),
    then also it is giving the same error.
    Please Help!

    I am also got the same error when retrieving the data from external table.
    I resolve this problem, like this:
    1. I imported the flat file(.csv) into repository.
    2. Map that flat file fields to database table cols.
    3. Deployed the mapping using controlcenter, and run the mapping.
    4. if it fails there, i loaded the flatfile data through the command prompt using "sqlldr" statement and control file is our mapping control file.
    5 Then it loaded data into database table sucessfully.
    Thanks.

  • Accessing data from tables P2050, P2051 and P2052

    Hello all,
    I am trying to access the data stored in P2050, P2051, and P2052.  I cannot access this data directly.  Is there a way to get this data through another tables??
    Thanks
    SL

    HI!
    You have to trace the transaction, which fills these structures.
    Use the transaction ST05 to sqltrace them.
    1. Turn on SQL trace in ST05
    2. Switch to an another modus with alt-tab, enter into the transaction
    3. Navigate until you will see the required data on the screen
    4. Go back to ST05 with alt-tab, deactivate trace, and show results. You'll see all read tables here.
    Regards
    Tamá

  • How to show data through table control

    Hi Experts,
    I have created an table control through wizard using table EKKO.
    I have to populate one internal table( type ekko ), and then show it in output  through table control.
    Please advise, how to do that and in where i have to write the codes.
    I will reward points for every suggestion
    Thanks in advance.
    regards

    hi saubrab,
                    This is kiran kumar.G.I am sending some sample code to populate data into table control check it once.
    i will give input in 100 screen. and display table control in 200 screen.check it once once ..ok....
    SE38 :(CODE)
    *& Module pool       YMODULEPOOL_TABLECONTROL1                         *
    *& DEVELOPER   : KIRAN KUMAR.G                                         *
    *& PURPOSE     : TABLE CONTROL DEMO                                    *
    *& CREATION DT : 17/12/2007                                            *
    *& T.CODE      : YMODTABLECONTROL1                                     *
    *& REQUEST     : ERPK900035                                            *
    PROGRAM  ymodulepool_tablecontrol1.
    Tables
    TABLES: yvbap,  "Sales Document: Item Data
            vbak.   "Sales Document: Header Data
    Controls
    CONTROLS: my_table TYPE TABLEVIEW USING SCREEN 200.
    Global Variables
    DATA: gv_lines    TYPE i,
          gv_lines1   type i,
          gv_temp     type i,
          gv_flag(20) TYPE c VALUE 'DISP',
          gv_mode1    TYPE c,
          gv_mode     TYPE c VALUE 'C'. " C: Change, D :Display
    Internal Table
    DATA: BEGIN OF gt_item OCCURS 0,
            vbeln LIKE vbap-vbeln,  "Sales Document Number
            posnr LIKE vbap-posnr,  "Sales Document Item
            matnr LIKE vbap-matnr,  "Material Number
            matkl LIKE vbap-matkl,  "Material Group
            arktx LIKE vbap-arktx,  "Short Text for Sales Order Item
            cflag,                  "Deletion Indicator
          END OF gt_item.
    *&      Module  STATUS_0100  OUTPUT
          text
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'ZTABLECONTROL' OF PROGRAM 'YMODULEPOOL_TABLECONTROL'.
    SET TITLEBAR 'xxx'.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
          text
    MODULE user_command_0100 INPUT.
      CASE sy-ucomm.
        WHEN 'DISP'.
          SELECT single vbeln
                        erdat
                        angdt
                        bnddt
                   FROM vbak
                  INTO (vbak-vbeln,vbak-erdat,
                        vbak-angdt,vbak-bnddt)
                  WHERE vbeln = vbak-vbeln.
            IF sy-subrc EQ 0.
    *Fetch the table control data and place them in Internal Table
              SELECT vbeln
                     posnr
                     matnr
                     matkl
                     arktx
                FROM yvbap
                INTO TABLE gt_item
                WHERE vbeln = vbak-vbeln.
              IF sy-subrc EQ 0.
    *NO OF line in the Internal Table
                DESCRIBE TABLE gt_item LINES gv_lines.
                my_table-lines = gv_lines + 20.
              ENDIF.
            ENDIF.
    *Call Screen 200.
            SET SCREEN 200.
          WHEN  'EXIT' OR 'BACK' OR 'CANCEL'.
    *Exit from the Program
            CALL TRANSACTION 'SESSION_MANAGER'.
        ENDCASE.
      ENDMODULE.                 " USER_COMMAND_0100  INPUT
    module STATUS_0200 output.
    SET PF-STATUS 'ZTABLECONTROL1'.
    endmodule.                 " STATUS_0200  OUTPU
    *&      Module  copy_data  OUTPUT
          text
    module copy_data output.
    *Fetch the current line data from the Table control
    read table gt_item index my_table-current_line.
    if sy-subrc eq 0.
    *Populating data into screen fields
    gt_item-vbeln = gt_item-vbeln.
    gt_item-posnr = gt_item-posnr.
    gt_item-matnr = gt_item-matnr.
    gt_item-matkl = gt_item-matkl.
    gt_item-arktx = gt_item-arktx.
    endif.
    SE51:CODE (SCREEN 100)
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0100.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0100.
    SE51 :CODE (SCREEN 200)
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0200.
    loop at gt_item with control my_table cursor my_table-current_line.
    module copy_data.
    endloop.
    PROCESS AFTER INPUT.
    loop at gt_item.
    MODULE USER_COMMAND_0200.
    endloop.
                             HAVE A NICE DAY..
    Award points if helpful,kiran kumar.G

  • Last Accessed Date of Tables (including SELECT) for Oracle 8 DB clean-up

    Hi all,
    I am assigned the task of listing out tables in a large database which are not used anymore. Is there a way by which we can find the last accessed date of the tables (including SELECT access) so that it would ease my task of finding out used tables?
    Your comments on LogMining for Oracle 8.0 and AUDIT on Production DB are welcome
    Many Thanks,
    Ravi

    Hi all,
    I am assigned the task of listing out tables in a large database which are not used anymore. Is there a way by which we can find the last accessed date of the tables (including SELECT access) so that it would ease my task of finding out used tables?
    Your comments on LogMining for Oracle 8.0 and AUDIT on Production DB are welcome
    Many Thanks,
    Ravi

  • URGENT-- inserting data through tables.

    Hi
    I m working on Resume Generator. I have created a Create Resume page. It is working fine, inserting data properly.
    However, there is one problem—
    While creating the resume one employee can have multiple certificates.
    In addition, one employee can have multiple competencies.
    So in the create Résumé page I have taken three regions—
    One for employee details
    Two for certifications
    Three for competencies
    In certificateRN and CompetencyRN, I have added one item each of style table. In addition, separate controllers for each RN.
    Then configured the tables to include “ADD a row” button in both the tables with “Add Competency” and “Add Certificate” label resp.
    the code in AddCompetencyCO is ----
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OATableBean comtable = (OATableBean)webBean.findIndexedChildRecursive("CompetencyTable");
    comtable.clearCache(pageContext);
    comtable.setInsertable(true);
    comtable.setAutoInsertion(false);
    comtable.prepareForRendering(pageContext);
    String combuttonLabel =
    pageContext.getMessage("XX_RESGEN", "XX_T_ADD_COMPETENCY", null);
    OAAddTableRowBean comaddRow = (OAAddTableRowBean)comtable.getColumnFooter();
    comaddRow.setText(combuttonLabel);
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAApplicationModule CreateAM = pageContext.getApplicationModule(webBean);
    if (ADD_ROWS_EVENT.equals(pageContext.getParameter(EVENT_PARAM)))
    CreateAM.invokeMethod("AddCompetency", null);
    The Code in AddCertificationCO is--
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OATableBean table = (OATableBean)webBean.findIndexedChildRecursive("CertificationTable");
    table.clearCache(pageContext);
    table.setInsertable(true);
    table.setAutoInsertion(false);
    table.prepareForRendering(pageContext);
    String buttonLabel =
    pageContext.getMessage("XX_RESGEN", "XX_T_ADD_CERTIFICATE", null);
    OAAddTableRowBean addRow = (OAAddTableRowBean)table.getColumnFooter();
    addRow.setText(buttonLabel);
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAApplicationModule CreateAM = pageContext.getApplicationModule(webBean);
    if (OAWebBeanConstants.ADD_ROWS_EVENT.equals(pageContext.getParameter(EVENT_PARAM))) {
    CreateAM.invokeMethod("AddCertificate", null);
    and the code in MainCO is --
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    String actionInCreateResmScreen = pageContext.getParameter(EVENT_PARAM);
    OAApplicationModule CreateAM = pageContext.getApplicationModule(webBean);
    CreateAM.invokeMethod("CreateResumeMethod");
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    String actionInCreateResmScreen = pageContext.getParameter(EVENT_PARAM);
    if (actionInCreateResmScreen.equals("AddProjects"))
    pageContext.setForwardURL(
    "OA.jsp?page=/CGR/oracle/apps/xx_resgen/employee/webui/AddProjectPG"
    ,null
    ,OAWebBeanConstants.KEEP_MENU_CONTEXT
    ,null
    ,null
    ,true
    ,OAWebBeanConstants.ADD_BREAD_CRUMB_NO
    ,OAWebBeanConstants.IGNORE_MESSAGES);
    Now the problem is –
    When I click on “Add Competency” button a row is added in both the tables and not only in Competency Table. i.e. the control is going in the PFR(Process Form Request) of both the controllers. And same is happening with “Add Certificate”. Data is being inserted in all the DBtables properly but this is the problem in design.
    I tried a lot but I m not getting it right. Please help.

    Hi,
    SOURCE_PARAM - indicates the source of the event that is generating the current browser request. This maps to the name attribute of the web bean. If you wish to check whether a table generated an event, you include in your code:
    if (tableBean.getName().equals(pageContext.getParameter(SOURCE_PARAM)))
    To check for the "Add Rows" event:
    if (tableBean.getName().equals(pageContext.getParameter(SOURCE_PARAM)))
    && ADD_ROWS_EVENT.equals(pageContext.getParameter(EVENT_PARAM)))
    This is explained in Dev guide.
    Hope this helps.
    - Senthil

  • Accessing data from Table control

    Hi,
    I created a table control using report program and i am trying to enter data in the table control which i want to update in the DB table. How can i get the data entered in table control to the report program, so that i can update the DB table.
    Please help me finding out which variable will hold the data entered in table control(dynamically).

    hi gautham,
    1. While designing set the table control as input field.
    2. In ur program create an internal table, with the same structure as your table control.
    3. Whenever an entry is made in the table control, modify your internal table.
    4. While saving use the internal table data to update the custom table.
    If internal table name is same in both screen painter(table control) and in the program then the values will automatically come into the internal table in the program with out programming.
    Otherwise we have programtically transfer the values.
    In the PAI event using move or move-corresponding statement.
    Check the program *RSDEMO02*
    check the links
    http://help.sap.com/saphelp_nw04/helpdata/EN/9f/dbac9f35c111d1829f0000e829fbfe/content.htm
    Yogesh N

  • Uploading data through Table Maintance Generator

    hi Folks,
             I have created three Custom tables in Solution Manager. i need to create  multiple entries for the tables. but i am very new to table maintanance generator. could any one tel me the step by step procedure (Like what to give for authorization grp and Function grp) to accomplish the task. thnx in advance.
                    santosh....

    Hi,
    Table maintanance Generator is used to manually
    input values using transaction sm30.The Table Maintenance Generator is used to create table maintenance program to add, modify or delete records in the database table. This can be accessed using transaction SE54 or in SE11 using the menu Utilities->Table Maintenance Generator
    follow below steps
    go to se11 check table maintanance check box under
    attributes tab
    utilities-table maintanance Generator->
    create function group and assign it under
    function group input box.
    also assign authorization group default &NC& .
    select standard recording routine radio in table
    table mainitainence generator to move table
    contents to quality and production by assigning
    it to request.
    select maintaience type as single step.
    maintainence screen as system generated numbers
    this dialog box appears when you click on create
    button
    save and activate table
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ed2d446011d189700000e8322d00/content.htm
    One step, two step in Table Maintenance Generator
    Single step: Only overview screen is created i.e. the Table Maintenance Program will have only one screen where you can add, delete or edit records.
    Two step: Two screens namely the overview screen and Single screen are created. The user can see the key fields in the first screen and can further go on to edit further details.
    please check the link for getting information about table maintenance generator !
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=use%20of%20table%20maintenance%20generator&cat=sdn_all
    http://www.sapdevelopment.co.uk/tips/tips_tabmaint_tcode.htm
    http://www.sap-img.com/abap/create-a-table-maintance-program-for-a-z-table.htm
    Regards,
    Priyanka.

  • What are required authorizations for accessing data through DI API?

    Hi All,
    I have one scenario
    After receipt from production add-on asks  user if he wants to close the related production order.
    in form Data Event et_FORM_DATA_ADD
    if user says yes then related production order will be closed using DI API.
    This works perfectly for Superuser account, but not for the user who has full access to Production Module only.
    Is there any specific authorization I am missing here.
    Thanks,
    Atul.

    Hi Gordon,
    It gives error at this point way before closing the document
    Private Sub SBO_Application_FormDataEvent( ByRef BusinessObjectInfo As SAPbouiCOM. BusinessObjectInfo , ByRef BubbleEvent As Boolean) Handles SBO_Application.FormDataEvent
        If (BusinessObjectInfo .BeforeAction = False) Then
    It says that user is not authorized
    Thanks,
    Atul

  • Problem in reports from accessing data through Cube

    Hi, Experts
    we have Product structure cube.In that product structure is one of the dimension and its has vast hierarchies under it,in which most of them are tagged as shared memebrs.The time is also one dimension,in which under it year,half year,qtr,months were present.
    The problem comes due to two reasons
    1)For product structure ,when i set to dynamic calc as storage property,Its not taking...and not aggregating.
    2)As i am loaded data as per the months,its aggregating to total years and showing in the report.When I drill down year,Its not happening...
    How to rectify the problem.....?
    Edited by: user8842356 on Nov 9, 2009 1:13 AM

    It is BSO..Cube.
    I executed the calculation Default calc all.
    The main problem coming was that years when i drill down to months ,its showing all zero values..

  • How to Access oracle DB table through SAP..problem in code

    Hello Guys
             I have to Access oracle table through SAP and need to create a report.
    From Some source I got the following code .  But it's not working , I am not able to update the table as well not able to access the data from table.
    Can some one provide me the necessary help.
    REPORT  ZORACLE.
    INCLUDE ole2incl.
    DATA: con TYPE ole2_object,
    rec TYPE ole2_object.
    DATA SQL(1023).
    DATA: BEGIN OF SPL OCCURS 0,
    VAL(1023),
    END OF SPL.
    DATA: BEGIN OF I1 OCCURS 0,
    F1(10) ,
    F2 TYPE I,
    END OF I1.
    IF con-header IS INITIAL OR con-handle = -1.
    CREATE OBJECT con 'ADODB.Connection'.
    IF NOT sy-subrc = 0.
    EXIT.
    ENDIF.
    CREATE OBJECT REC 'ADODB.Recordset'.
    IF NOT sy-subrc = 0.
    EXIT.
    ENDIF.
    ENDIF.
    MDB connetion infomations ....
    break-point.
    CONCATENATE 'Provider=' '''OraOLEDB.Oracle''' ';'
    INTO SQL.
    CONCATENATE SQL 'Password=' '''prodx''' ';'
    INTO SQL.
    CONCATENATE SQL 'User ID=' '''prod''' ';'
    INTO SQL.
    CONCATENATE SQL 'Data Source=' '''sterlite''' ';'
    INTO SQL.
    CONCATENATE SQL 'Mode=' '''Share Deny None'''
    INTO SQL.
    MDB connection ...
    CALL METHOD OF CON 'Open'
    EXPORTING #1 = SQL.
    Query (insert) statement ...
    SQL = 'insert into ofusers values('.
    CONCATENATE SQL '''Atul''' ',' '''121''' ')' INTO SQL.
    Query run ...
    CALL METHOD OF REC 'Open'
    EXPORTING #1 = SQL
    #2 = CON
    #3 = '1'.
    Query (select) statement ...
    SQL = 'select * from ofusers'.
    Query run ...
    CALL METHOD OF REC 'Open'
    EXPORTING #1 = SQL
    #2 = CON
    #3 = '1'.
    Selecting MDB record into SAP internal table ...
    DO.
        CALL METHOD OF REC 'getstring' = SQL
        EXPORTING #1 = '2' "Do not modify!
        #2 = 1 "Do not modify!
        #3 = '|' "Do not modify!
        #4 = '|'. "Do not modify!
        IF sy-SUBRC EQ 0.
            REFRESH SPL. CLEAR SPL.
            SPLIT SQL AT '|' INTO TABLE SPL.
            LOOP AT SPL.
              CASE SY-TABIX.
                WHEN 1.
                  I1-F1 = SPL-VAL.
                WHEN OTHERS.
                  I1-F2 = SPL-VAL.
              ENDCASE.
            ENDLOOP.
              APPEND I1. CLEAR I1.
            ELSE.
              EXIT.
        ENDIF.
    ENDDO.
    Result writing ...
    LOOP AT I1.
      WRITE: AT /1(10) I1-F1,
      AT (10) I1-F2.
    ENDLOOP.
    connetion close & destroy
    FREE OBJECT con.
    FREE OBJECT rec.
    Thanks in Advance
    Swati Namdeo

    Hi swati,
    1. for this u will also require help of basis team.
    2. these are the steps.
    a) make an entry in DBCON
    b) make connection string
    (on the physical application server,
    so that it can connect to secondary database)
    (this will be done by basis team,
    in which, they will specify the
    IP address of the secondary database server,
    the DATABASE ID, and the port number)
    c) then using open sql / native sql,
    we can use the secondary database connection,
    just like normal.
    d) if we use open sql,
    then there must be Y/Z table on
    sap as well as secondary database,
    and the field names , their type all should be identical.
    regards,
    amit m.

  • Open HUB ( SAP BW ) to SAP HANA through DB Connection data loading , Delete data from table option is not working Please help any one from this forum

    Issue:
    I have SAP BW system and SAP HANA System
    SAP BW to SAP HANA connecting through a DB Connection (named HANA)
    Whenever I created any Open Hub as Destination like DB Table with the help of DB Connection, table will be created at HANA Schema level ( L_F50800_D )
    Executed the Open Hub service without checking DELETING Data from table option
    Data loaded with 16 Records from BW to HANA same
    Second time again executed from BW to HANA now 32 records came ( it is going to append )
    Executed the Open Hub service with checking DELETING Data from table option
    Now am getting short Dump DBIF_RSQL_TABLE_KNOWN getting
    If checking in SAP BW system tio SAP BW system it is working fine ..
    will this option supports through DB Connection or not ?
    Please follow the attachemnet along with this discussion and help me to resolve how ?
    From
    Santhosh Kumar

    Hi Ramanjaneyulu ,
    First of all thanks for the reply ,
    Here the issue is At OH level ( Definition Level - DESTINATION TAB and FIELD DEFINITION )
    in that there is check box i have selected already that is what my issue even though selected also
    not performing the deletion from target level .
    SAP BW - to SAP HANA via DBC connection
    1. first time from BW suppose 16 records - Dtp Executed -loaded up to HANA - 16 same
    2. second time again executed from BW - now hana side appaended means 16+16 = 32
    3. so that i used to select the check box at OH level like Deleting data from table
    4. Now excuted the DTP it throws an Short Dump - DBIF_RSQL_TABLE_KNOWN
    Now please tell me how to resolve this ? will this option is applicable for HANA mean to say like , deleting data from table option ...
    Thanks
    Santhosh Kumar

  • One table in ms access----- data migration ----- oracle two tables

    Hi,
    we are try to migrate from ms access to oracle.
    Ms access has patient table
    PATIENT_FNAME
    PATIENT_LNAME
    PATIENT_MNAME
    PATIENT_ADDRESS1
    PATIENT_ADDRESS2
    PATIENT_ADDRESS3
    PATIENT_SUBURB
    PATIENT_STATE
    PATIENT_POSTCODE
    PATIENT_COUNTRY
    PATIENT_PHONE
    PATIENT_MOBILE
    PATIENT_SEX
    PATIENT_DOB
    DIAGNOSIS_REV
    RECEIVED_THAL
    RECEIVED_STC
    RECEIVED_BORTEZOMIB
    DIAGNOSIS_OTHER
    DIAGNOSIS_THAL
    DIAGNOSIS_THAL_RR_MM
    DIAGNOSIS_THAL_UNTREATED_MM
    DIAGNOSIS_THAL_ENL
    DIAGNOSIS_THAL_NONAPPROVED
    DIAGNOSIS_THAL_OTHER
    PRESCRIBER_ID foreign key
    PRESCRIBER_FNAME
    PRESCRIBER_LNAME
    PRESCRIBER_MNAME
    PRESCRIBER_ADDRESS1
    PRESCRIBER_ADDRESS2
    PRESCRIBER_ADDRESS3
    PRESCRIBER_DEPARTMENT
    PRESCRIBER_ATTENTION
    PRESCRIBER_SUBURB
    PRESCRIBER_STATE
    PRESCRIBER_POSTCODE
    PRESCRIBER_COUNTRY
    PRESCRIBER_PHONE
    PRESCRIBER_FAX
    DATE_PRESCRIBER_SIGNED
    DATE_PATIENT_SIGNED
    DATE_APPROVED
    DATE_RECEIVED
    PROCESSED_BY
    PATIENT_ID primary key
    COMMENTS
    UPIN
    SIGNED_BY
    PATIENT_REP_NAME
    IACCESS_STATUS
    PRESCRIBER_RN
    QUESTION_1
    QUESTION_2
    QUESTION_3
    QUESTION_4
    QUESTION_5
    QUESTION_6
    QUESTION_7
    QUESTION_8
    QUESTION_9
    QUESTION_10
    QUESTION_11
    QUESTION_12
    PRESCRIBER_SIGNED
    NOTIFICATION_UPIN
    WOCBP
    FOLLOWUP_REQUIRED
    FOLLOWUP_NOTES
    FOLLOWUP_STATUS
    REV_THAL
    DATE_DEACTIVATED
    DEACTIVATE_REASON
    VERIFIED
    VERIFIED_BY
    REGISTERED_REVLIMID
    REGISTERED_THALIDOMIDE
    FILE_NAME
    In oracle  they divieded into two tables
    SQL> desc tbl_patient
    Name
    PATIENT_ID primary key
    PATIENT_NAME_FIRST
    PATIENT_NAME_LAST
    PATIENT_MIDDLE_INITIAL
    PATIENT_GENDER
    PATIENT_DOB
    SQL> desc tbl_patient_prescriber
    Name
    PATIENT_ID foreign key
    PRESCRIBER_ID primary key
    PRESCRIBER_NAME_FIRST
    PRESCRIBER_NAME_LAST
    PRESCRIBER_MIDDLE_INITIAL
    First i can load the datas into tbl_patient.
    How to insert the datas to tbl_patient_prescriber If it's null values and repeated values are there in ms access or staging table.

    I am seeing, perhaps three tables here.
    Patient -
    Patient_id (PK)
    first_name,
    last_name,
    Other attributes
    Prescriber -
    Prescriber_id (PK)
    first_name,
    last_name
    Other attributes
    Patient_prescriber -
    Patient_id (FK-PK)
    Prescriber_id (FK-PK)
    meds_order_id (PK)
    Other patient_prescriber attributes.

Maybe you are looking for