Help me to join tables!

I'm a very newbie to oracle and sql, so please help.I have a problem like:
I have 2 table:
STATE(StateName,Population)
StateName   Population
  VIC         100000
  NSW         100000
  SA          100000
  QLD         100000
  ACT         100000
  NT          100000
PROJECT(ProjCode,ProjName,StateName) - Foreign Key (StateName) references STATE
ProjCode    ProjName          StateName
p01            pro01             VIC
p02            pro02             NSW
p03            pro03             VIC
What I want is to join this 2 table and display it like :
StateName   ProjName
  VIC         Pro01
  NSW         Pro02
  VIC         Pro03
  SA
  QLD
  ACT
  NT
And Don't use UNION / MINUS / OUTER JOIN & IS NOT NULL
Please help!!!
btw, how can i post using html code?
Thanks in advanced.
Message was edited by:
        user451262                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Hi scott.swank!
I need to say again that i'm a very newbiew to oracle and sql, and I don't have job,
i'm student, in my assignment, my lecturer asks us to do thing like that.
We both know the "outer join" is the right solution, UNION is reasonable too.
But just because the assignment requires to do in different way from those ways.
So after several helps from other persons here, I saw that it could be impossible to do
without using UNION and OUTER JOIN.And of course, the lecturer needs to change the
requirement of the assingment because it's IMPOSSIBLE to do like that.Or he knew the way to do and we r here have not known it yet.Both of cases should have 1 case is right
and one case is wrong.so far I think 70% the requirement of my asignment is not possible
to do.But let's wait until the last second.
I always appreciate all helps here and keep needing helps from you here.
Thank you so much.

Similar Messages

  • Help needed in Joining tables for  Help view

    Hi All ,
    My requirement is create a search help , using a view which will join four table ,
    I was able to do using a databaser view and joining below tables
    KNA1     MANDT     =     KNVV     MANDT
    KNA1     KUNNR     =     KNVV     KUNNR
    TVV5     MANDT     =     KNVV     MANDT
    TVV5     KVGR5     =     KNVV     KVGR5
    TVV5     MANDT     =     TVV5T     MANDT
    TVV5     KVGR5     =     TVV5T     KVGR5
    But thes is doing a inner join and help is not providing valuse where tghere are no entries for KNVV-KVGR5
    for outer join i came to know we use hep view s instead of database viow ,
    But i have problem joining these table s while creating Help View .
    Any Help will be appricaited
    Thanks
    Vinay Kolla

    Hi Vinay,
    Use the tabls in below given order to get the right view.
    KNVV
    KNA1
    TVV5
    TVV5T
    KNA1-MANDT  = KNVV-MANDT
    KNA1-KUNNR = KNVV-KUNNR
    TVV5-MANDT = KNVV-MANDT
    TVV5-KVGR5 = KNVV-KNVV
    TVV5-MANDT = TVV5T-MANDT
    TVV5-KVGR5 = TVV5T-KVGR5
    Regard
    Anees

  • Help with joining tables

    hello can some one help me in joining the tables
    po_vendors of AP and gl_je_headers or gl_he_headers of GL
    thankyou

    How about this:
    Build first an auxiliary table (you can truncate it every time) and in it:
    create table auxtab as
    select distinct employeeid, row_date from table1
    union
    select distinct employeeid, row_date from table2
    union
    select distinct employeeid, row_date from table3
    union
    Then you can use this "auxiliar" table as the driving one for outer joins
    select * from auxtab left outer join table1 on ()
    left outer join table2 on ()
    left outer join table3 on ()
    etc..

  • Need your help to confirm the table join rules on DocEntry and DocNum.

    Hi guys,
    I've done some study and awared table join rules on SBO documents, let me put in the followings:
    (1) the table of documents head (i.e. ODLN) and line items (i.e. DLN1) can be joined via DocEntry/BaseEntry.
    (2) the table of related documents (i.e. RDR1 and DLN1) can be joined via DocNum/BaseRef.
    finnally, can we say that we can ONLY join table by DocEntry/BaseEntry or DocNum/BaseRef, and we should NOT use DocEntry/BaseRef.
    Am I right? pls help to correct it for my misunderstanding.
    Thanks.

    thanks for your help.
    but I'm truly confused about why some table have both BaseRef and BaseEntry columns, some table only have DocEntry columns?
    As I know, e.g. OWOR and WOR1, there have some series generated from NMM1, the value of DocEntry/DocNum in OWOR may not be the same, and we can only join OWOR/WOR1 via OWOR.DocEntry = WOR1.DocEntry.
    So when to use (T0.DocEntry/T1.DocEntry), when to use (T0.DocEntry/T1.BaseEntry) and when to use (T0.DocNum/T1.BaseRef)?

  • Could you please help me in joining these tables

    Could you please help me in joining these tables
    ra_customers
    oe_order_headers_all
    oe_order_lines_all
    mtl_system_items_b
    mtl_item_categories
    mtl_categories
    I wrote the condition like this.Is there any more possibilities for join
    Tell me what more to join in this query....?
    select x.customer_name,x.segment1,x.description,x.segment2,sum(x.week1) week1, sum(x.week2) week2,
    sum(x.week3) week3, sum(x.week4) week4, sum(x.week5) week5
              from
              select a.customer_name,d.segment1,d.description,f.segment2,
              case
              when to_char(to_date(c.request_date,'DD-MON-YYYY'),'w')= 1 then
    nvl(c.ordered_quantity,0)
              else null
              end as WEEK1,
              case
              when to_char(to_date(c.request_date,'DD-MON-YYYY'),'w')= 2 then
    nvl(c.ordered_quantity,0)
              else null
              end as WEEK2,
              case
              when to_char(to_date(c.request_date,'DD-MON-YYYY'),'w')= 3 then
    nvl(c.ordered_quantity,0)
              else null
              end as WEEK3,
              case
              when to_char(to_date(c.request_date,'DD-MON-YYYY'),'w')= 4 then
    nvl(c.ordered_quantity,0)
              else null
              end as WEEK4,
              case
              when to_char(to_date(c.request_date,'DD-MON-YYYY'),'w')= 5 then
    nvl(c.ordered_quantity,0)
              else null
              end as WEEK5
              from
              ra_customers           a,
              oe_order_headers_all          b,
              oe_order_lines_all           c,
              mtl_system_items_b          d,
              mtl_item_categories      e,
              mtl_categories           f
              where
              a.customer_id=b.sold_to_org_id and
              b.header_id=c.header_id
              and c.request_date between sysdate-7 and sysdate+7
              and c.inventory_item_id=d.inventory_item_id
              and d.inventory_item_id = e.inventory_item_id
              and e.category_id = f.category_id
              and d.organization_id=e.organization_id
              and e.category_set_id=1
              ) x
         group by x.customer_name,x.segment1,x.description,x.segment2;

    Hw will I join the tables that have no column in common?I need to retrieve a value from table 2 by refering the value in table 1Post some sample data and show us what you want.

  • Select distinct problem with muliple join tables, help needed

    Hi,
    I have two main tables. Each has its of sub joined tables.
    guest_id_for_reservation connects two major tables. This has
    to be that way
    because my guest may change the room status from single to
    double (and the
    similar exceptional requests).
    guests reservation
    guest_id_for_reservation
    countrytable hoteltable
    delegationtable roomtype
    I form a query. I want to select distinct those results. But
    it does not
    work.
    If I do not include any table related to reservation table
    and its sub
    joined tables (disregarding guest_id_for_reservation), it
    works.
    Is there a specific syntax for select distinct of this type
    or any
    workaround.?
    Thank you
    Hakan

    Hi I'm still battling with this - have connected the AX to my Imac via ethernet and it shows up fine in Airport Utility. Status light is green and it says its set up to connect to my existing wireless network using wireless connection. Security in Network Preferences is the same for both: WPA2 Personal.
    So I don't think there's a problem with the AX, and my current wireless network (BT Home Hub) is working fine.
    And when I restore factory settings Airport Utility can see the AX before updating settings so the wireless side of AX must work too.
    I'm figuring it must be something about the settings that mean AU can't see it anymore. But I can't work out what, since security is the same.
    Any ideas would be great!

  • How can I pass multiple condition in where clause with the join table?

    Hi:
    I need to collect several inputs at run time, and query the record according to the input.
    How can I pass multiple conditions in where clause with the join table?
    Thanks in advance for any help.
    Regards,
    TD

    If you are using SQL-Plus or Reports you can use lexical parameters like:
    SELECT * FROM emp &condition;
    When you run the query it will ask for value of condition and you can enter what every you want. Here is a really fun query:
    SELECT &columns FROM &tables &condition;
    But if you are using Forms. Then you have to change the condition by SET_BLOCK_PROPERTY.
    Best of luck!

  • How to use a MAP whithout join table

    Hello
    I am still evaluating KODO ;-)
    I am using kodo 3.1.2 with an evaluation version
    linux (kernel 2.6)
    SUN JDK 1.4.2_04
    MYSQL MAX 4.0.18 -Max
    IDEA 4.0.3 and ANT 1.5.4 (to be exhaustive)
    I am wondering how to configure the following mapping involving a Map. :
    public class Translation {
    private String locale;
    private String txt;
    public class TranslatableDescription {
    /**Map of Key=locale as String; Value = {@link Translation}*/
    ==> private Map translations = new HashMap(); <==
    public void addATranslation(Translation t){
    translations.put(t.getLocale(), t);
    file package.jdo :
    <?xml version="1.0"?>
    <jdo>
    <package name="data">
    <class name="Translation"/>
    <class name="TranslatableDescription">
    <field name="translations">
    <map key-type="java.lang.String"
    value-type="tutorial.data.Translation"/>
    <extension vendor-name="kodo" key="jdbc-key-size" value="10"/>
    </field>
    </class>
    </package>
    </jdo>
    The default Mapping generate a join table : TRANS_TRANSLATION which works
    fine, but I would like to remove this table by adding a
    colonne in the "TRANSLATION" table containing the JDOID of the
    TRANSLATIONDESCRIPTION owner of this TRANSLATION.
    I have made some try like this one in the mapping file
    <class name="TranslatableDescription">
    <field name="translations">
    <jdbc-field-map type="n-many-map" key-column="LOCALE"
    ref-column.JDOID="OWNERJDOID" table="TRANSLATION0"
    value-column.JDOID="JDOID"/>
    </field>
    The schema generated in my DB is correct but when I try to persist some
    objects I have the following Exception :
    727 INFO [main] kodo.jdbc.JDBC - Using dictionary class
    "kodo.jdbc.sql.MySQLDictionary" (MySQL 4.0.18'-Max' ,MySQL-AB JDBC Driver
    mysql-connector-java-3.0.10-stable ( $Date: 2004/01/13 21:56:18 $,
    $Revision: 1.27.2.33 $ )).
    Exception in thread "main" kodo.util.FatalDataStoreException: Invalid
    argument value, message from server: "Duplicate entry '2' for key 1"
    {prepstmnt 8549963 INSERT INTO TRANSLATION0 (JDOID, LOCALESTR, OWNERJDOID)
    VALUES (?, ?, ?) [reused=0]} [code=1062, state=S1009]
    NestedThrowables:
    com.solarmetric.jdbc.ReportingSQLException: Invalid argument value,
    message from server: "Duplicate entry '2' for key 1" {prepstmnt 8549963
    INSERT INTO TRANSLATION0 (JDOID, LOCALESTR, OWNERJDOID) VALUES (?, ?, ?)
    [reused=0]} [code=1062, state=S1009]
    java.sql.BatchUpdateException: Invalid argument value, message from
    server: "Duplicate entry '2' for key 1"
         at kodo.jdbc.sql.SQLExceptions.getFatalDataStore(SQLExceptions.java:42)
         at kodo.jdbc.sql.SQLExceptions.getFatalDataStore(SQLExceptions.java:24)
         at kodo.jdbc.runtime.JDBCStoreManager.flush(JDBCStoreManager.java:594)
         at
    kodo.runtime.DelegatingStoreManager.flush(DelegatingStoreManager.java:152)
         at
    kodo.runtime.PersistenceManagerImpl.flushInternal(PersistenceManagerImpl.java:964)
         at
    kodo.runtime.PersistenceManagerImpl.beforeCompletion(PersistenceManagerImpl.java:813)
         at kodo.runtime.LocalManagedRuntime.commit(LocalManagedRuntime.java:69)
         at
    kodo.runtime.PersistenceManagerImpl.commit(PersistenceManagerImpl.java:542)
         at
    tutorial.CreateTranslatableDescription.main(CreateTranslatableDescription.java:48)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.intellij.rt.execution.application.AppMain.main(Unknown Source)
    I have the feeling that KODO does try to make diffent row in the table
    "TRANSLATION0" for the TRANSLATION and the MAP.
    So, is this kind of mapping supported by KODO and if yes, how can I
    configure it.
    Thank you for your help
    Nicolas

    So, is this kind of mapping supported by KODO and if yes, how can I
    configure it.It is not directly supported. You can fake it using a one-many mapping
    (see thread: Externalizing Map to Collection of PC), but unless you must
    map to an existing schema, it's probably not worth the effort. (Note:
    also there is a bug that actually prevents this from working with 3.1.2;
    the bug is fixed for 3.1.3, but it hasn't been released yet).

  • MVC: Create a view which populates two (or more) joined tables in a single view table

    I am beginner in MVC and I would like to create a view which populates two (or more) joined tables in a single view table as described below.
    I have two tables:
    1 - Bloggers: - bloggerID (int);
                        - bloggerName (string)
    2 - Blogs: - blogID (int);
    bloggerID (int);
                    - blogTitle (string);
                    - blogImage (string)
    A blogger can have one or more blogs while one blog must be related to only one blogger.
    I would like to have a view table on my webpage as the following:
    Blogger Name
    Blog Title
    Blog Image
    Noris Gang
    Virus
    virus.jpg
    Noris Gang
    Desktops
    desktop.jpg
    Gauthier
    Books
    books.png
    John Leon
    NNNMHJhjdhj
    Nmbj.jpg
    I'm using MVC 4 (or at least 3).
    Thanks for your help.

    Hello,
    From your description, it is not very clear that what you mean about the View, if it means the View concept in database as SQL Server, your required view should be as below:
    Create view
    as
    Select Bloggers.bloggerName, Bloggers.blogTitle, Bloggers.blogImage
    From Bloggers join Blogs on Bloggers.bloggerID = Blogs. bloggerID
    If it means the UI view in MVC concept, I suggest you could ask it on the MVC forum:
    http://forums.asp.net/1146.aspx
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • What are the Pros and Cons while joining tables at DF and Universe level

    Hi Experts,
    I am new to Data federator designer. I need help on the below.
    Could you please let me know the Pros and Cons while joining the source tables in data federator
    And While joining the DF target tables in universe designer.
    Regards,
    Gana

    Hi,
    1. I have created target tables based on source tables with one to one mapping and then join all target tables in universe.
    Ex: Source tables: Infocube text tables, fact tables and 3rd party data base table
    Target tables:Target tables are same as source tables
    --- Yes this is the way to create target Tables  and join them in the universe.These target Tables gives you the flexibility  like in future your requirement is to add one more object based on some calculation which is not possible in the universe so that time you can create  one more column in the target table and do the calculation. at the same time if you are using source table you can not do anything.
    2. Created single target table with all objects of source tables and merged all sources tables data.
    Ex: Source tables: Infocube text tables, fact tables and 3rd party data base table
    Target table: Single table.
    --- This is bit complex structure to merge all tables data in the one target table.in this situation you have to put more efforts and it is more complex.basically this type of target table is useful when you are merging data by multiple source into single  or  creating one target table based on the  union of tables by adding two mapping rules or more and you can not join tables in universe.
    Better approach is first 1. create target tables based on the source tables and join them in the universe.
    Thanks,
    Amit

  • Problem in joining tables

    Hi All,
    Here I am facing the problem in Joining table I have S031,s032,makt,marc,I need a field ATWRT field from CAWN table,I did't find any link for this above from tables, any one please help me how to find out.
    REPORT  ZMMTEST.
    tables:s031,s032,makt,marc.
    DATA : BEGIN OF itab1 OCCURS 0,
           matnr TYPE s031-matnr,
           lgort      TYPE s031-lgort,
           werks      TYPE s031-werks,
           spmon      TYPE s031-spmon,
           magbb      type S031-magbb,
           wagbb      type S031-wagbb,
           azubb      type S031-azubb,
           aagbb      type S031-aagbb,
           END OF itab1.
    DATA : BEGIN OF itab2 OCCURS 0,
           matnr like makt-matnr,
           maktx like makt-maktx,
           END OF itab2.
    DATA : BEGIN OF itab3 OCCURS 0,
           matnr TYPE marc-matnr,
           werks type marc-werks,
           ekgrp type marc-ekgrp,
           END OF itab3.
    DATA : BEGIN OF itab4 OCCURS 0 ,
           matnr   TYPE s032-matnr,
           lgort   TYPE s032-lgort,
           werks   TYPE s032-werks,
           mbwbest type s032-mbwbest,
           wbwbest type s032-wbwbest,
           END OF itab4.
    data : begin of itab5 occurs 0,
          objek   type ausp-objek,
           atwrt   type cawn-atwrt,
           end of itab5.
    DATA : BEGIN OF itab_final1 OCCURS 0,
           matnr      TYPE s031-matnr,
           lgort      TYPE s031-lgort,
           werks      TYPE s031-werks,
           spmon      TYPE s031-spmon,
           magbb      type S031-magbb,
           wagbb      type S031-wagbb,
           azubb      type S031-azubb,
           aagbb      type S031-aagbb,
           maktx      TYPE makt-maktx,
           ekgrp      type marc-ekgrp,
           mbwbest    type s032-mbwbest,
           wbwbest    type s032-wbwbest,
           END OF itab_final1.
    DATA : BEGIN OF itab_final OCCURS 0,
           matnr      TYPE s031-matnr,
           lgort      TYPE s031-lgort,
           werks      TYPE s031-werks,
           spmon      TYPE s031-spmon,
           magbb      type S031-magbb,
           wagbb      type S031-wagbb,
           azubb      type S031-azubb,
           aagbb      type S031-aagbb,
           maktx      TYPE makt-maktx,
           ekgrp      type marc-ekgrp,
           mbwbest    type s032-mbwbest,
           wbwbest    type s032-wbwbest,
           atwrt      type cawn-atwrt,
           END OF itab_final.
    select-options:s_matnr for s031-matnr.
    start-of-selection.
    select matnr lgort werks spmon magbb wagbb azubb aagbb
            from s031 into  table itab1
            where matnr in s_matnr.
    if not itab1[] is initial.
        select matnr maktx from makt into table itab2 for all entries in itab1 where matnr = itab1-matnr.
    if not itab2[] is initial.
       select matnr werks ekgrp from marc into table itab3 for all entries in itab2 where matnr = itab2-matnr.
    if not itab3[] is initial.
       select matnr werks mbwbest wbwbest from s032 into corresponding fields of table itab4 for all entries in itab3 where matnr = itab3-matnr.
    *if not itab4[] is initial.
       select atwrt from cawn into corresponding fields of table itab5.*
         endif.
       endif.
    endif.
    endif.
    end-of-selection.
      loop at itab3.
       itab_final-matnr = itab3-matnr.
       read table itab2 with key matnr = itab3-matnr.
       if sy-subrc = 0.
        itab_final-maktx = itab2-maktx.
       read table itab1 with key matnr = itab2-matnr.
       if sy-subrc = 0.
        itab_final-lgort = itab1-lgort.
        itab_final-werks = itab1-werks.
        itab_final-spmon = itab1-spmon.
        itab_final-magbb = itab1-magbb.
        itab_final-wagbb = itab1-wagbb.
        itab_final-azubb = itab1-azubb.
        itab_final-aagbb = itab1-aagbb.
      endif.
       endif.
       itab_final-ekgrp = itab3-ekgrp.
      read table itab4 with key matnr  = itab3-matnr.
      if sy-subrc = 0.
      itab_final-mbwbest = itab4-mbwbest.
      endif.
    itab_final-wbwbest = itab4-wbwbest.
      append itab_final.
      clear itab_final.
      endloop.
    WRITE: /2 'material', 23 'storagelocation',29  'plant',35 'date',44 'val.stock.issue',66 'val.stock.issue.value',86 'no.of.stock.receipts',97 'no.of.stock.issues',150 'material.des', 160 'pur.group',190 'stock.val',210 'stock.quan'.
      ULINE.
      loop at itab_final.
      WRITE: /2 itab_final-matnr, 23 itab_final-lgort,29  itab_final-werks,35 itab_final-spmon,44 itab_final-magbb,66 itab_final-wagbb,86 itab_final-azubb,97 itab_final-aagbb,
               150 itab_final-maktx, 160 itab_final-ekgrp,190 itab_final-wbwbest,210 itab_final-mbwbest,itab_final-atwrt.
    ENDLOOP.
    Thanks&regds,
    Sree.

    Hi sree,
    take join between s031-sptag ,ausp-datuvthen fetch records based on this condition.(itab1)
    After retrieve records based on join condition between
    ausp-atinn,ausp-adzhl and cawn-atinn,cawn-adzhl.(itab2)
    Retrieve records using for all entries bet first join condition and second join condition.
    use for all entries between itab1 and itab2.
    it will work surely.
    reaward points

  • DB connectivi​ty toolkit: syntax error in a SELECT data from joined tables

    Hello everyone
    I'm trying to put in labview an SQL query on joined tables.
    As example I take a DB for storing the data of 2on2 basketball games, whose tables are
    matches(matchId,teamA,teamB)
    teams(teamId,PlayerAname,PlayerBname,Nationality)
    nationalities(NatId,natName)
    To get a result table with the match number and the player names along with their nationality I use this query on MySQL (which works on the command line interface)
    SELECT MatchID,
                     t1.PlayerAName, t1.PlayerBName, n1.natName,
                     t2.PlayerAName, t2.PlayerBName, n2.natName
    FROM matches m
    INNER JOIN teams t1 ON t1.teamID = m.teamA
    INNER JOIN teams t2 ON t2.teamID = m.teamB
    INNER JOIN nationalities n1 ON n1.natID = t1.nationality
    INNER JOIN nationalities n2 ON n2.natID = t2.nationality
    When I put it in labview, using the "select data" block, I get a syntax error as shown in the attached screenshot.
    Am I mistanking something in using the JOIN statements, or the aliases?
    Thanks in advance!
    Solved!
    Go to Solution.
    Attachments:
    select2dabone.vi ‏12 KB

    Giovasa wrote:
    I do't like very much the chain of blocks execute query+n*(fetch element)+free object, so I try to avoid that as much that I can...
    Sounds like a prime candidate for a subVI. You don't have to use it every time, but it probably would help for cases where you do want to put the SQL query directly in code.
    Incidentally, if you're doing joins, you might consider using views, as that allows you to hide the details of the interactions of the tables in the DB itself.
    Try to take over the world!

  • Updating JOIN tables in ALDSP Logical View

    I've got a logical view which has 3 physical data services in it, representing relational tables in Oracle. The 3 tables are Person(Primary key=PersonID), Address (primary key=AddressID), and a JOIN table which contains PersonID and AddressID. I am able to successfully perform "gets" and "creates" using the logical view, however I have an issue when I try to UPDATE a person by adding a new address record. When I try this from the Test tab in the DSP Studio, I can see that the product inserts a new record to the Address table and then tries to insert a record into the PERSON_ADDRESS table, but it doesn't include the ADDRESS_ID column in the insert so it fails cause that is a non-null column.
    Do you know if it is possible to do this? Has anyone had any experience with a similar situation? I attached a couple screenshots of the DSP logical view.
    Any help would be appreciated.
    Thanks,
    Chris
    Additional notes:
    - The primary keys in the Person and Address table are autogenerated via a SEQUENCE. I have setup the physical services corresponding to each table such that the primary key is qualified as a Sequence column, and specified the Sequence name.

    One additional note on this issue. When I test the Update method using the Test tab in ALDSP 3.0, if I specify an AddressId when adding a new Address, the process works fine and creates the Address record as well as the Person_Address record correctly. It seems that the issue only occurs when I leave the AddressId empty and let the process populate it using the Oracle SEQUENCE I specified on the physical Address (AddressId) service. When I leave it empty, the DSP correctly generates an AddressId and inserts it into the Address table, it just doesn't attempt to insert the new AddressId into the Person-Address record.

  • Joining tables with SQL in Crystal XI

    I am new to Crsytal Reports. I want to join 2 tables using a formula, which I am trying to do in SQL. I created a simple test report and I can get it to work if I don't put any fields on the report from the joined table.  ie  -  if I just use fields from "sal-rep" the report works.  As soon as I add a field from "freight" (my joined table) the report will not display anything.  (but I don't get any error messages - just a blank report).  Here is my SQL: 
    SELECT "sal-rep"."full-name","sal-rep"."invoice-nbr","freight"."misc-charge-ammount"  FROM   "PUB"."sal-rep" INNER JOIN "PUB"."FREIGHT" ON ("sal-rep"."invoice-nbr"="freight"."invoice-nbr")  WHERE  "sal-rep"."invoice-nbr"='0000189957'

    I got it to work!!!   This is the SQL I used -
    SELECT "sal_rep"."full-name", "sal_rep"."invoice-nbr", "freight"."misc-charge-ammount", "freight"."invoice-date"
    FROM   "PUB"."freight" "freight" INNER JOIN "PUB"."sal-rep" "sal_rep" ON ("freight"."invoice-nbr"="sal_rep"."invoice-nbr") AND ("freight"."invoice-date"="sal_rep"."inv-date")
    WHERE  "sal_rep"."invoice-nbr"='0000189957'
    Now when I look at the Table used in Database expert it lists -  Command and Freight.
    Before it was listing Command and Sal-Rep. 
    Not sure I understand why, but at least it's working.
    thanks for your help - really appreciated!

  • Joining tables in different databases

    Hi,
    I know we can access multiple databases like Oracle, Informix etc. through a single toplink session using session broker. Also in toplink documentation it says there is a work around for joining tables that exists in different databases i.e. joining an Oracle table with an Informix Table. If anyone had tried this or if it is possible, please let me know how to do this.
    Thanks..

    If I could know, how to perform or some sample code, for the following two steps it would be great.
    Write descriptor ammendment code to bind together that go from (A) to (B) and (B) to (A).
    Be sure to map the ammendment descriptors in the mapping workbench.Or please point me to the right toplink documentation or examples.
    Thanks a lot for your help.

Maybe you are looking for

  • Checking and inserting in one query

    Hi, I want to check for the existance of a record in a table. If the record is not present then I would like to insert the data. I have written a query for this but it is giving me error as ORA-01427: single-row subquery returns more than one row whi

  • Issue Search Help Exit for Material Group

    Dear Expertsl, I developed a search help exit for material group for the search helps both H_T023 and H_2023_MEPO to restrict certain material groups from the actual display as follows 1)  I developed custom table to hold the Invalid material groups

  • Calibration Issues

    I am setting up the calibration process newly in my system. I have done the necessary settings.I am facing some issues while executing the calibration process. 1.While I try to create a single cycle plan I am getting the message"Counter couldn't be d

  • CMR pricing issue

    During Credit Memo request creation - with reference to F2 customer invoice - - VA01 transaction should be pricing copied from original invoice into CM request without changes. This is set up in copy control customizing (spro - TVAF transaction). But

  • Do AS2 and AS3 all play together with Director?

    Hi, I am about to make some incremental changes to a AS2 and Dir CD UI design. I like the AS3 for making a new movie player and its handling of XML. I need to share variables between all of them. Do I need to worry about this mixed environment? Thank