How link between the two tables

Hi All
In fact, I am new in Oracle and also, in this forum, and I hope that I find useful and benefited also reportedly.
My oracle is Oracle Database 10g Express Edition.
I have now two tables and one for staff and the second of the equipment used by staff.
Well now how link between tables in the agenda third.
Thanks

You could read one of the many books on the subject, or you could just try something real simple like
SQL> desc a
Name                    Null?    Type
USERNAME                NOT NULL VARCHAR2(30)
PROFILE                 NOT NULL VARCHAR2(30)
SQL> desc b
Name                    Null?    Type
USERNAME                         VARCHAR2(30)
ROLENAME                NOT NULL VARCHAR2(30)
SQL> select * from a natural join b;
USERNAME         PROFILE      ROLENAME
USER_ONE         DEFAULT      CRISYS_SYSADMIN
USER_TWO         END_USER     USER_CONNECT
USER_TWO         END_USER     CARS_APP_USER
USER_THREE       BATCH_USER   BATCH_CONNECT
USER_THREE       BATCH_USER   APPLICATION_OWNER
etc.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • How to find the unmatched records between the two tables?

    We have to tables in SQL Server database.
    But unable to find the unmatched record betwwen these two tables.
    There 12 records are unmatched. But unable to get those records.
    I am using the below sql:
    select c1,c2,c3,c4,c5,c6 from Table1
    except select c1,c2,c3,c4,c5,c6 from Table2
    Please help. Thanks in advance.

    Hi knra,
    Please try the following codes:
    select c1,c2,c3,c4,c5,c6 from Table1 t1
    where not exists
    (select * from Table2 t2
    where t1.c1= t2.c1
    and t1.c2= t2.c2
    and t1.c3= t2.c3
    and t1.c4= t2.c4
    and t1.c5= t2.c5
    and t1.c6= t2.c6)
    Best Regards,
    Allen Li
    Allen Li
    TechNet Community Support
    This is what I would've said, but it would make life much easier for you if you have a reference or ID for each entry, this is why we use keys.

  • Is there a link between the Journal tables and the Marketing Document tables?

    Hi Everyone,
    Is there a link back from the Journal Tables (e.g.: OJDT and / or JDT1) to the Marketing Documents tables (e.g.: OINV and / or INV1)?
    If there is a link can you please let me know what it is?
    Kind Regards,
    David

    David..
    Try This
    Select T1.RefDate,
    Case
    When T1.TransType=13 Then 'Invoice'
    When T1.TransType=14 Then 'A/R Credit Memo'
    When T1.TransType=15 Then 'Delivery Note'
    When T1.TransType=16 Then 'Delivery Return'
    When T1.TransType=162 Then 'Stock Revaluation'
    When T1.TransType=18 Then 'Purchase Bill'
    When T1.TransType=19 Then 'A/P Credit Memo'
    When T1.TransType=20 Then 'GRPO'
    When T1.TransType=202 Then 'Work Order'
    When T1.TransType=21 Then 'Goods Return'
    When T1.TransType=24 Then 'Incoming Payment'
    When T1.TransType=30 Then 'Journal'
    When T1.TransType=46 Then 'Outgoing Payment'
    When T1.TransType=59 Then 'Goods Receipt'
    When T1.TransType=60 Then 'Goods Issue'
    When T1.TransType=67 Then 'Stock Transfer'
    Else T1.TransType
    End [TransType],
    T1.TransId,
    Case
    -- Sales A/R
    When T1.TransType = 13 Then (Select isnull(Comments, '') From OINV Where DocNum = T1.BaseRef and CardCode = T1.ShortName) -- Invoice
    When T1.TransType = 14 Then (Select isnull(Comments, '') From ORIN Where DocNum = T1.BaseRef and CardCode = T1.ShortName) -- A/R Credit Memo
    When T1.TransType = 15 Then (Select isnull(Comments, '') From ODLN Where DocNum = T1.BaseRef and CardCode = T1.ShortName) -- Delivery
    When T1.TransType = 16 Then (Select isnull(Comments, '') From ORDN Where DocNum = T1.BaseRef and CardCode = T1.ShortName) -- Delivery Return
    -- Purchase A/P
    When T1.TransType = 18 Then (Select isnull(Comments, '') From OPCH Where DocNum = T1.BaseRef and CardCode = T1.ShortName) -- Purchase Bill
    When T1.TransType = 19 Then (Select isnull(Comments, '') From ORPC Where DocNum = T1.BaseRef and CardCode = T1.ShortName) -- A/P Credit Memo
    When T1.TransType = 20 Then (Select isnull(Comments, '') From OPDN Where DocNum = T1.BaseRef and CardCode = T1.ShortName) -- GRPO
    When T1.TransType = 21 Then (Select isnull(Comments, '') From ORPD Where DocNum = T1.BaseRef and CardCode = T1.ShortName) -- Goods Return
    -- Production
    When T1.TransType = 202 Then (Select isnull(Comments,'') From OWOR Where DocNum = T1.BaseRef and PostDate = T1.RefDate) -- Work Order
    -- Banking
    When T1.TransType = 24 Then (Select isnull(Comments, '') From ORCT Where DocNum = T1.BaseRef and CardCode = T1.ShortName) -- Incoming Payment
    When T1.TransType = 46 Then (Select isnull(Comments, '') From OVPM Where DocNum = T1.BaseRef and CardCode = T1.ShortName) -- Outgoing Payment
    When T1.TransType = 30 Then (Select ISNULL(LineMemo, '') From JDT1 Where Ref1 = T1.Ref1 and ShortName = T1.ShortName) --  Journal
    -- Inventory
    When T1.TransType = 59 Then (Select ISNULL(Comments, '') From OIGE Where DocNum = T1.Ref1 and DocDate = T1.RefDate) -- Goods Receipt
    When T1.TransType = 60 Then (Select ISNULL(Comments, '') From OIGN Where DocNum = T1.Ref1 and DocDate = T1.RefDate) -- Goods Issue
    When T1.TransType = 67 Then (Select ISNULL(Comments, '') From OWTR Where DocNum = T1.Ref1 and DocDate = T1.RefDate) -- Stock Transfer
    When T1.TransType = 162 Then (Select ISNULL(Comments, '') From OMRV Where DocNum = T1.Ref1 and DocDate = T1.RefDate) -- Stock Revaluation
    Else ''
    End [Remarks],
    T1.LineMemo,
    Case
    When exists (Select AcctCode From OACT Where AcctCode = T1.ContraAct)
    Then (Select AcctName From OACT Where AcctCode = T1.ContraAct)
    else (Select CardName From OCRD Where CardCode = T1.ContraAct)
    End [Account],
    Case
    When T1.Debit=0.0
    Then 0.0
    Else T1.Debit
    End Debit,
    Case
    When T1.Credit=0.0
      Then 0.0
    Else T1.Credit
    End Credit
    From JDT1 T1
    Where T1.TransType <> -3
    And T1.RefDate Between @FromDate and @ToDate
    And T1.ShortName = @Account
    Order By T1.RefDate,
    T1.TransId
    Regards
    Kennedy

  • Re:Linking between the two components.

    Hi Friends,
    How to link a view in one component to the other component and the view in the second component should be read only..For example am having a submit button in first component when I click on the submit button the second component Approve button should receive this view which should be a read only file.

    Hi,
         While you are navigating from one component to the other, you may use plugs and pass a parameter through the plug. Read the parameter in the other component and change the property of the UI elements to read-only.
    Hope this helps you. Plz revert in case of some help.
    Cheers!!!
    Umang

  • How to query in two tables

    Hi all
    How to query in two different tables? Should i use the following
    SET_BLOCK_PROPERTY('ins1', ONETIME_WHERE, 'serial = ''' || :GLOBAL.CODE || ''''); this is working but for one table if i want for both tables and and it display the related information in main form , eg..tables are referenced by primary key constraint and foreign key.
    sarah
    Edited by: SarahSarahSarah on Sep 1, 2009 4:59 AM

    For the primary forign key tables no need to create two forms use the master detail functionality of forms.
    create a Master/Detail form using the DEPARTMENT, EMPLOYEE tables.
    DEPARTMENTwill be the Master block and EMPLOYEE will be the Detail block. The join condition between the two tables is where the deptno column of DEPARTMENT is equal to the deptno column of EMPLOYEE .
    The following is an outline of the steps:
    Create the DEPARTMENT data block and include the all the fields on the form.
    Use the Form layout and only display one record at a time.
    Go back to the Object Navigator and select the "Data Blocks" tree. Make sure the DEPARTMENT block is not selected and run the Data Block Wizard again.
    Create the EMPLOYEE data block and include all of the columns.
    For the master/Detail relationship, de-select the "auto" option, use a Join relationship, choose the DEPARTMENT data block as the Master and set EMPLOYEE.DEPTNO= DEPARTMENT.DEPTNO for the join relationship.
    In the Layout Wizard for the Dependents data block, display all of the fields
    Choose a Tabular style and display 4 up to records at once with 0 space between each record.
    Save the form and run the form.
    Thanks

  • Database link between the databases with the same name

    Hi,
    I need to establish a db link between two databases that are named the same way on two different servers.
    server 1 has a database dev1 and server2 has a database dev1. The tnsnames on server2:
    DEV1 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = server2)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = DEV1)
    DEV1_server1 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = server1)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = dev1)
    Can anyone let me know a way to create a database link between the two above?
    Thanks.

    Hi,
    Am not sure what problem you are facing in creating a db link
    create database link dev1_server1 connect to x identified by x using "dev1_server1"
    create database link dev1_server2 connect to x identified by x using "dev1_server2"where dev1_server1 and dev2_server2 are the tns entry in tnsnames.ora file of server2 and server1 respectively.
    Regards
    Anurag

  • How to find link between the field (kzbew) mvt.ind. and the (ebeln) ?

    Hi all,
    while finding the link between the kzbew and the ebeln the only table i found is MSEG.
    But i want to populate the data in this table only?
    So please give me the solution how i can fetch the movement indicator for a particular purchase order?
    As i am using the idoc segment MBGMCR02((for creating goods receipt)...i have to pass the movt. indicator with the movement type also.......?

    the field - description in MSEG says:
    Movement Indicator
    Specifies the type of document (such as purchase order or delivery note)  that constitutes the basis for the Movement.
    Use
    This indicator is necessary, for example, to enable a distinction to be made between a goods receipt for a purchase order and a goods receipt for a production order. These two goods movements result in different data
    and account updates in the system.
    Dependencies
    The movement indicator is derived from the transaction code.
    what transaction do you want to use for your idoc?

  • I have purchased a new iPad and given my old one to my husband.  How do I change the Apple ID over to him.  We are having continuous confusion between the two iPads

    I have purchased a new iPad and given my old one to my husband.  How do I change the Apple ID over to him.  We are having continuous confusion between the two iPads

    Hi Marg42,
    Thanks for visiting Apple Support Communities.
    First, your husband can create his own Apple ID via the web, computer, or iPad, if he hasn't already:
    My Apple ID
    https://appleid.apple.com
    iTunes: How to set up an Apple ID within iTunes
    http://support.apple.com/kb/ht2731
    Next, he can sign out of the Apple services that are currently using your Apple ID on your old iPad, and sign in with his own.
    This article has instructions for doing so for specific Apple services:
    Apple ID: What to do after you change your Apple ID
    http://support.apple.com/kb/HT5796
    Alternately, he can erase the device and set it up as new using the steps in this article:
    iOS: How to back up your data and set up your device as a new device
    http://support.apple.com/kb/ht4137
    Best Regards,
    Jeremy

  • My daughter and I both have an iPhone and we have shared my apple ID. Now her phone is syncing with mine and we want to have different contacts. How do I differentiate between the two phones?

    My daugher and I both have an iPhone and we have shared my apple ID. She just replaced her phone and now our contacts are syncing -- and we don't want that. How do I differentiate between the two phones?

    Is the same Apple iCloud account being accessed on each iPhone?

  • My IPhone has a different ICloud Apple ID than my iPad. How can I stream between the two devices

    My iPhone has a different id than my iPad. How can I stream between the two devices

    I should say that you can add the other account to each device as a seconday account by going to Settings>Mail,Contacts,Calendars>Add Account>iCloud and signing in with the ID the other device is using.  This would allow you to see mail, contacts, calendars, reminders and notes from the other account alongside the same data from the primary account on each device.

  • When in Windows 7 (using bootcamp obviously) I am able to see my files in my Mac partition. When I try to access them I am told that I need permission from the administrator. How do I give myself permission to access files between the two partitions?

    When in Windows 7 (while using bootcamp) I am able to see my personal files in my Mac partition. When I try to access them I am denied access, it tells me that I need permission from the administrator. How do I give myself permission to access files between the two partitions, Mac/Windows7?

    When in Windows 7 (while using bootcamp) I am able to see my personal files in my Mac partition. When I try to access them I am denied access, it tells me that I need permission from the administrator. How do I give myself permission to access files between the two partitions, Mac/Windows7?

  • How do I transfer iTunes music from iPad to nano without a computer ? Can I lighting plug between the two?

    How can I transfer iTunes music from iPad to Nano without the use of a computer? Can it be done with Lightning plugs between the two?

    There is no way to do that.

  • Hi - I'm trying to sync iBooks on my Macbook Pro with iBooks running on my iPad. I have some pdf's download from the net I want to share between devices and I can't work out how to sync the two devices. Any help please?

    Hi - I'm trying to sync iBooks on my Macbook Pro with iBooks running on my iPad. I have some pdf's download from the net I want to share between devices and I can't work out how to sync the two devices. Any help please? I'm running Mavericks

    Thanks for your help Brij011 - much appreciated. Apologies as I'm a newbie but I've looked at the info for synching and I appear to have all the switches flicked on my iPad. Does the iPad and iBooks only sync in iCloud for purchases as I appear to be doing something wrong. I could sync ok when books was in iTunes but since migrating to Mavericks I think I'm doing something wrong!!

  • How to deal with two tables in the Data Base

    Hi Experts,
    IF WE WANT TO GET THE DATA FROM THE TWO TABLES, WHAT QUERY SQL STATEMNET SHOULD HAVE TO WRITE AND ANY CONFIGURATION CHANGES NEED TO BE DONE AND WHAT SETTINGS NEED TO BE DONE IN THE ESR .
    PLEASE EXPLAIN ME ON THIS .
    THANKS IN ADVANCE.
    RAM

    If you are using the same database and referencing two tables then you dont need special configuration for it. You use single jdbc adapter. In ESR you create two statment structure one for each table. This is one option. The second option is use join statment and write query and in this case one statment data structure.
    Please go through the help sap link for the jdbc document structure.
    http://help.sap.com/SAPHELP_NW04s/helpdata/EN/2e/96fd3f2d14e869e10000000a155106/content.htm
    The second option can be done using the below structure.
    <StatementName>
    <anyName action=u201D SQL_QUERYu201D >
    <access>SQL-String with optional placeholder(s)</access>
    <key>
      <placeholder1>value1</placeholder1>
      <placeholder2>value2<placeholder2>
    </key>
    </anyName > 
    </StatementName>

  • The relationships and links between the various SAP database tables

    Hi Gurus,
    I am trying to learn the relationships and links between the various SAP database tables (SAP FI-AA, SAP SD, SAP MM, SAP HR and so on) for correctly extracting data from them. Especially I am expressing an interest in the SAP database tables on SAP FI-AA, SAP SD, SAP MM, SAP HR. Could somebody provide me with documentations about the relationships and links between them. I will be very grateful if somebody can provide me with links.
    Thanks and regards
    Sergey

    hi Sergey,
    try
    http://www.erpgenie.com/abap/tables.htm
    http://www.erpgenie.com/abap/tables_fi.htm
    http://abap4.tripod.com/SAP_Tables.html
    http://abap4.tripod.com/Finance_Tables.html
    http://www.auditware.co.uk/SAP/Extras/SAPTables.pdf
    hope this helps.

Maybe you are looking for

  • Idoc_To_Idoc Scenario....Is mapping is required or not in following Case

    Hi All, Iam doing Idoc to Idoc Scenario from Dev System to Quality System using the WP_PLU (Atricle Master). I wish to send the same Idoc from DEV to QTY with the partner Type KU Check List which i have done In R/3 1) Create RFC Destination in DEV wh

  • How frame drop test is executed using PQA in TestStand ?

    Can someone shed some light on the frame drop test which is executed using PQA in TestStand ? Also, what is the use of reference stream and trigger in the frame drop test ? According to the manual, the Dropped Frame processor computes the difference

  • Insensitive communication

    Adobe has had its database compromised and customer data has been stolen. You would have thought someone in Adobe would have considered the impacts and adjusted their automated communications to be more sensitive, where this compromise has adverse im

  • Do we use same bank accounts in APP and BRS

    do we use same bank accounts in APP and BRS

  • Back-up disk full

    I was using time machine to back-up my media drive. My back-up drive is the same size as the media drive, 750 gigs. The back-up drive seems to need 100 gigs more than the media drive for time machine to work. This engaged a back up error because of l