Regarding : What is used in place of inner join

hi,
i want to know that we use to have inner joins in our reports and i want to know is there anything which can be used in place of it?

Hi,
In place of inner join you can use  FOR ALL ENTRIES.
reward point if useful.
Regards
Kumar M

Similar Messages

  • Using MAX on an INNER JOIN

    Is there any way to use MAX on an INNER JOIN???
    I am getting the MAX Date row on a previous INNER JOIN and then I want to use that result row to get an Account Balance. I know it's hard to explain without the SQL but I'll try...
    So I want the MAX(BILLHDR.dt_bill)'s Account Balance...
    SELECT PYMTADJ.ky_payment_adjustment,
    PYMTADJ.ky_enroll,
    PYMTADJ.dt_payment_adjustment,
    PYMTADJ.at_payment_adjustment,
    MAX(BILLHDR.dt_bill) Last_Bill_Date,
    MAX(BILLHDR.dt_reading_from) "Last Bill Period From Date",
    MAX(BILLHDR.dt_reading_to) "Last Bill Period To Date",
    BILLHDR2.at_bill_account_balance
    FROM PVIEW.PAYMENT_ADJUSTMENT PYMTADJ
    LEFT OUTER JOIN PVIEW.BILL_HDR BILLHDR
    ON PYMTADJ.ky_enroll = BILLHDR.ky_enroll
    AND BILLHDR.dt_bill <= '15-Jun-2009'
    INNER JOIN PVIEW.BILL_HDR BILLHDR2
    ON BILLHDR.ky_enroll = BILLHDR2.ky_enroll
    AND MAX(BILLHDR.dt_bill) = BILLHDR2.dt_bill
    Any help would be GREATLY appreciated.
    Thanks.
    PSULionRP

    [email protected] wrote:
    But now the next riddle is this. I have another table I have to query against using those MAX Dates. Is there any way to use those MAX Dates as my Join criteria for another table???Sure, it is called in-line view:
    SELECT whatever-you-need
      FROM (
    SELECT   pymtadj.ky_payment_adjustment, pymtadj.ky_enroll,
             pymtadj.dt_payment_adjustment, pymtadj.at_payment_adjustment,
             MAX (billhdr.dt_bill) last_bill_date,
             MAX (billhdr.dt_reading_from) "Last Bill Period From Date",
             MAX (billhdr.dt_reading_to) "Last Bill Period To Date",
             MAX (billhdr2.at_bill_account_balance)KEEP (DENSE_RANK FIRST ORDER BY billhdr.dt_bill DESC) some_alis
        FROM pview.payment_adjustment pymtadj LEFT OUTER JOIN pview.bill_hdr billhdr
             ON pymtadj.ky_enroll = billhdr.ky_enroll
           AND billhdr.dt_bill <= TO_DATE ('15-Jun-2009', 'DD-Mon-YYYY')
             LEFT OUTER JOIN pview.bill_hdr billhdr2
             ON billhdr.ky_enroll = billhdr2.ky_enroll
    GROUP BY pymtadj.ky_payment_adjustment,
             pymtadj.ky_enroll,
             pymtadj.dt_payment_adjustment,
             pymtadj.at_payment_adjustment
    ) inline_view JOIN another_table ON(inline_view."Last Bill Period From Date" = another_table.some_column1)SY.

  • What to use in place of Flash

    I'm trying to make a sliding, Ken Burns effect with photos for a website. What can I use in place of Flash that will work on an iPad?

    In general, HTML5 is the expected/preferred path. You can do numerous animations/transitions in HTML5 with a few lines of CSS and/or JavaScript.
    A quick search for HTML 5 transitions turns up lots of candidates.

  • About a question using Update ... inner join ?

    select *
    FROM a
    INNER JOIN b ON a.ProductID=b.ProductID
    WHERE a.HeadID='000246'
    this statement is ok ;
    But the following statement does not work ! Why ?
    UPDATE a SET
    a.Quantity=a.PurchaseQuantity/b.ConversionGene
    FROM a
    INNER JOIN b ON a.ProductID=b.ProductID
    WHERE a.HeadID='000246'

    "Because Oracle syntactically does not support that type of construct..." Is a correct statement, but not because "It expects only one table in UPDATE statement". The synatax for an updateable join in Oracle requires a "proper" in-line view to be updated.
    As long as the table joined (in my example t1) has a declared unique constraint on the columns used to join by (in my example id), you can do it like:
    SQL> SELECT * FROM t;
            ID DESCR
             1 One
             2 Two
             3 Three
    SQL> SELECT * FROM t1;
            ID DESCR2
             1 Un
             2 Deux
    SQL> UPDATE (SELECT t.descr, t1.descr2
      2          FROM t
      3             JOIN t1 ON t.id = t1.id)
      4  SET descr = descr2;
    2 rows updated.
    SQL> SELECT * FROM t;
            ID DESCR
             1 Un
             2 Deux
             3 ThreeTTFN
    John

  • Using MANDT field in Inner joins

    Experts,
    I need your suggestions on using MANDT field in JOINS. Example
    Select afield1 afield2 b~field1 from table1 as a
    inner join table 2 b on amandt = bmandt
                                     afield1 = bfield1
    where......
    Will it be a performance issue if I use the join without MANDT field?
    Anand

    probably stated in the note:
    mandt in the WHERE condition is automatically added, but not in ON-condition.
    Some databases had problems to figure out, that the mandit is always the same, i.e. did not use an index on second table. So adding mandt in ON condition can have impacts. In newer database releases this is no problem anymore. But anyway, the additional line in the ON-condition is no big deal.
    Siegfried

  • What is used in place of skeleton interface?

    So in Java 2 SDK, Standard Edition, v 1.2 the skeleton interface was deprecated - i.e. should not be used since it will eventually be removed.
    So what on the server side allows for the marshalling and unmarshalling of objects? Is it RemoteObject or RemoteServer or some proprietary (i.e. differs with different JVM's) derived class from the above two? I'm just wondering because on the client side it is obviously the Stub class that handles this - so who is the counterpart to the Stub class on the server side?
    Thanks,
    Novice

    There's an extensive server-side runtime system which
    listens at sockets, accepts connections, reads
    incoming call headers, unmarshalls arguments,
    dispatches calls, marshalls return values and
    exceptions, and writes these to the socket. Does anyone know of what classes are involved in the socket handling? I can decompile the stub class and see that it is using RemoteCall to invoke the remote methods.
    Thanks,
    Novice
    [snip]

  • Why Inner join or Outer join is not used for Pool or Cluster tables  ?

    Hi SAP-ABAP Experts .
    With Due Regards .
    May u explain me why Inner join or Outer join is not useful for Pool or Cluster tables  ?
    because peoples advised not use Joins for Pool and Cluster tables , What harm will take place , If we do this ?
    Best Regards to all : Rajneesh

    Both Pooled and Cluster Tables are stored as tables within the database. Only the structures of the two table types which represent a single logical view of the data are defined within the ABAP/4 Data Dictionary. The data is actually stored in bulk storage in a different structure. These tables are commonly loaded into memory (i.e., 'buffered') due to the fact they are typically used for storing internal control information and other types of data with little or no external (business) relevance.
    Pooled and cluster tables are usually used only by SAP and not used by customers, probably because of the proprietary format of these tables within the database and because of technical restrictions placed upon their use within ABAP/4 programs. On a pooled or cluster table:
    Secondary indexes cannot be created.
    You cannot use the ABAP/4 constructs select distinct or group by.
    You cannot use native SQL.
    You cannot specify field names after the order by clause. order by primary key is the only permitted variation.
    I hope it helps.
    Best Regards,
    Vibha
    Please mark all the helpful answers

  • Bind variables in inner join queries

    Hi all,
    can we use bind variables in inner join queries?
    eg:
    INNER JOIN PRTY_LOC_CODE_T plc ON (ppt.PRTY_REC_ID = plc.PRTY_REC_ID and plc.HIST_CTRL_IND = *0*_ and plc.DEL_IND = *'N'*_)
    regards
    sunil

    Dear,
    can we use bind variables in inner join queries?Where are you using this join? if in a stored procedure or stored function than you don't have to care about your variables. It will be automatically considered as a bind variable
    within your static SQL (i.e in your stored procedure)
    Hope this helps
    Mohamed Houri

  • Help: Modifying inner join

    Hello Folks,
    I have an Access Query and am rewriting the whole query in Oracle to run a report.The thing is Am a beginner in oracle and am scratching my head on how to modify this inner join. please help me in rewriting this inner join in oracle. thanks a million
       ((Debtor INNER JOIN MAX_TRANS_DATE AS MAX_TRANS_DATE_1 ON Debtor .
            EVENT_ID = MAX_TRANS_DATE_1.EVENT_ID) INNER JOIN
            TMP$ALL_RECOVERY_TYPE
            ON(Debtor . EVENT_CASE_ID = TMP$ALL_RECOVERY_TYPE . EVENT_CASE_ID) AND
            (Debtor . EVENT_ID = TMP$ALL_RECOVERY_TYPE . EVENT_ID))
    INNER JOIN CUBS TRANSACTIONS
        ON (Debtor . EVENT_ID = CUBS TRANSACTIONS . EVENT_ID)
       AND (Debtor . EVENT_CASE_ID = CUBS TRANSACTIONS . EVENT_CASE_ID)

    Thanks for getting back. But still am unable to get the correct data. I will try to break it down.
    Microsoft Access Table MAX_TRANS_DATE menitoned above in the inner join was originally coming from table called TRANSACTIONS i.e.( MAX_TRANS_DATE = SELECT [Transactions].[EVENT_ID], Max([Transactions].[TRANSDATE]) AS MaxOfTRANSDATE
    FROM Debtor INNER JOIN Transactions ON [Debtor].[EVENT_ID]=[Transactions].[EVENT_ID]
    GROUP BY [Transactions].[EVENT_ID];
    Here the problem is am recreating the access database query in oracle database and we dont have MAX_TRANS_DATE in the Oracle database but we do have TRANSACTIONS table.
    So i just used TRANSACTIONS in the inner join instead of MAX_TRANS_DATE.
    But the result is wrong.The Field Transdate from TRANSACTIONS is pulling dates as 10/5/2006 instead of 02/01/2010. I suspect something is wrong with the joins.Please help me. I can provide the old access query and the new oracle query that i have created.
    Thanks
    Edited by: user11961230 on Mar 5, 2010 11:49 AM

  • Problem when doing inner join for three tables....

    DATA: V3 TYPE VBAP-MAKTL.
    SELECT single vbap~matkl into V3
           from VBAP
           inner join VBFA
           inner join LIPS
              on LIPSPOSNR = VBFAPOSNN
              and vbapvbeln = vbfavbelv
               and vbapposnr = vbfaposnv
                 where LIPSVBELN = VBFAVBELN = '0080000834'
                 and vbfa~vbtyp_n = 'J'
                 and LIPS~J_3ASIZE = '0884'.
    Error: Wrong expression "INNER" in from clause...

    Hello Tushar,
      Why you are using the 3 table inner join. If the volume of data is big then this statement will give to time out. Use "for all entries" statement to select the data from the table.
    Like
    select field1 field2 from LIPS into i_lips
        where LIPS~J_3ASIZE = '0884'.
    select f3 f4 from vbfa into i_vbfa for all entries in i_lips where field1 = i_lips-field1 and so on
    and 
    use same to select data from VBAP.
    Hope this will help

  • What program can I use in place of Flash?

    I have tried using several programs that need Flash, of course Apple doesn't support it.  Is there another program I can use in place of Flash?

    Apple doesn't want and Adobe have never made a version that works on iOS devices anyway.
    As you don't say what you have tried I don't know whether they include browser apps such as Skyfire, iSwifter, Puffin and Photon, which 'work' on some sites (but judging by their reviews not all sites). Also some websites, especially news sites, have their own apps in the App Store.

  • My daughter is a college student. she needs to write and compile c programs on her mac for a class this semester. what is the best place for her to start to get the correct compiler etc. to use ? thanks

    my daughter is a college student. she needs to write and compile c programs on her mac for a class this semester. what is the best place for her to start to get the correct compiler etc. to use ? thanks

    If you know that you will not be asked to design GUI interfaces, and the C programming course will adhere to command line compilation environments, then get the Xcode command-line developer tools, and skip the extra complication of Xcode until you absolutely need it. Apple has kicked GNU C to the curb and is rightly so, using Clang/LLVM compiler technology.
    Sign up for a free Apple Developer account using your Apple ID, and then visit the Mac Dev Center, and towards the bottom of the page, you will see additional downloads. Click on the associated, all down loads link. Know your OS X version beforehand, as the command-line tool releases are tied to general operating system versions, and the most recent Xcode version.  That said, there are currently two March 9, 2015 command-line tools for Xcode 6.2 — one for OS X 10.9 Mavericks, and the other for OS X Yosemite.

  • Hi does anyone know what I can use in place of flash player?

    Hi does anyone know what I can use in place of flash player?

    5 Flash Player Alternatives http://www.techshout.com/features/2011/01/flash-player-for-ipad-apps/
     Cheers, Tom

  • What is '&' used in message class

    Hi,
    What is '&' used in message class with the message no in SE91.
    Give me details idea on this.
    Best Regards,
    Chini

    If you use '&' operator in your message, then you can pass the text/literals whatever you want to get display in the message.
    For example,
    In a message clase zmsg, there is a message like this...
    018 Table & not exist
    you can call this message from your program by passsnig the table name in to this message...
    For example,
    ztablename = 'BUT000'.
    Message e018(zmsg) with ztablename.
    Filling Message Texts Dynamically *
    Message texts in table T100 can contain up to four ampersand characters (&) as placeholders. You can replace these at runtime using the WITH addition in the MESSAGE statement:
    MESSAGE ... WITH f1 ... f4.
    The contents of fields f1 ... f4 are then inserted sequentially into the message text in place of the placeholders.

  • Inner Join - whats wrong?

    Hello there,
    I was trying to make an Inner Join, but unfortunately without success.
    there is the code, can someone pls tell me what is wrong??
    DATA: gs_mara TYPE mara,
          gt_mara TYPE STANDARD TABLE OF mara.
    DATA: gs_marc TYPE marc,
          gt_marc TYPE STANDARD TABLE OF marc.
    DATA: gs_makt TYPE makt,
          gt_makt TYPE STANDARD TABLE OF makt.
    DATA: gs_t001w TYPE t001w,
          gt_t001w TYPE STANDARD TABLE OF t001w.
    TYPES: BEGIN OF ts_ausgabe,
           matnr TYPE matnr,
           mtart TYPE mtart,
           matkl TYPE matkl,
           meins TYPE meins,
           werks TYPE werks_d,
           dispo TYPE dispo,
           adrnr TYPE adrnr,
           END OF ts_ausgabe.
    DATA: gs_ausgabe TYPE ts_ausgabe.
    DATA: gt_ausgabe TYPE STANDARD TABLE OF ts_ausgabe.
    SELECT-OPTIONS: pr_matnr FOR gs_mara-matnr,
                    pr_werks FOR gs_marc-werks.
    START-OF-SELECTION.
      select a~matnr b~werks c~dispo d~adrnr e~mtart f~matkl g~meins
      INTO CORRESPONDING FIELDS OF TABLE gt_ausgabe
      FROM        mara AS a  INNER  JOIN marc AS b
      ON b~matnr = a~matnr
      INNER  JOIN marc AS c  ON c~matnr = a~matnr
      INNER JOIN t001w AS d  ON d~werks = a~matnr 
      INNER  JOIN mara AS e  ON e~matnr = a~matnr
      INNER  JOIN mara AS f  ON f~matnr = a~matnr
      INNER  JOIN mara AS g  ON g~matnr = a~matnr
      where a~matnr = pr_matnr
        and b~werks = pr_werks
        and c~dispo = pr_dispo
        and d~adrnr = pr_adrnr
        and e~mtart = pr_mtart
        and f~matkl = pr_matkl
        and g~meins = pr_meins.
      write: / matnr dispo adrnr mtart matkl meins.
        LOOP AT gt_mara INTO gs_mara.
          READ TABLE gt_marc INTO gs_marc WITH KEY matnr = gs_mara-matnr.
          IF sy-subrc = 0.
            MOVE: gs_mara-matnr TO gs_ausgabe-matnr,
                  gs_mara-mtart TO gs_ausgabe-mtart,
                  gs_mara-matkl TO gs_ausgabe-matkl,
                  gs_mara-meins TO gs_ausgabe-meins,
                  gs_marc-werks TO gs_ausgabe-werks,
                  gs_marc-dispo TO gs_ausgabe-dispo,
                  gs_t001w-adrnr TO gs_ausgabe-adrnr.
            WRITE: / gs_mara-matnr, gs_mara-mtart, gs_mara-matkl, gs_mara-meins, gs_marc-werks, gs_marc-dispo, gs_t001w-adrnr.
            APPEND gs_ausgabe TO gt_ausgabe.
          ENDIF.
        ENDLOOP.
        LOOP AT gt_ausgabe INTO gs_ausgabe.
          WRITE: / sy-vline, gs_ausgabe-matnr,
                   sy-vline, gs_ausgabe-mtart,
                   sy-vline, gs_ausgabe-matkl,
                   sy-vline, gs_ausgabe-meins,
                   sy-vline, gs_ausgabe-werks,
                   sy-vline, gs_ausgabe-dispo,
                   sy-vline, gs_ausgabe-adrnr.
          ULINE.
        ENDLOOP.
    Edited by: Thomas Zloch on Jun 20, 2011 10:19 AM - code tags added

    hi ,
    use this query 
    select a~matnr b~werks b~dispo adrnr mtart matkl meins
      INTO CORRESPONDING FIELDS OF TABLE gt_ausgabe
      FROM        mara AS a  INNER  JOIN marc AS b
      ON b~matnr = a~matnr
    *  INNER  JOIN marc AS c  ON c~matnr = a~matnr
      INNER JOIN t001w AS d  ON d~werks = b~werks 
      where a~matnr = pr_matnr
        and b~werks = pr_werks
        and c~dispo = pr_dispo
        and adrnr = pr_adrnr
        and mtart = pr_mtart
        and matkl = pr_matkl
        and meins = pr_meins.
    Why  you are using mara table and marc table multiple times   ?
    regards
    Deepak.
    Edited by: Deepak Dhamat on Jun 20, 2011 10:31 AM

Maybe you are looking for