Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3316

Re: Duplicate rows in this inner join

$
0
0

Hi Ivan Diaz

 

Try this

 

       fal~einri fal~falnr

       fal~falar fal~patnr fal~abrkz fal~erdat fal~erusr fal~updat fal~upusr fal~storn fal~stdat fal~fatyp

        bew~bewty bew~bwart bew~bwidt bew~orgfa bew~orgpf bew~bwgr1 bew~bwgr2

        cir~lfdnr cir~kostr cir~patkz cir~rangf

        lei~falnr lei~orgid lei~leist lei~lnrls lei~anfoe lei~erboe lei~preis lei~stals lei~imeng lei~taras lei~anpoe

    INTO CORRESPONDING FIELDS OF TABLE ti_alv

    FROM nfal AS fal

   INNER JOIN nbew AS bew ON fal~einri = bew~einri and fal~falnr = bew~falnr and fal~srorn = bew~storn

   INNER JOIN ncir AS cir ON bew~einri = cir~einri and bew~falnr = cir~falnr and bew~storn = cir~storn

   INNER JOIN nlei AS lei ON cir~einri = lei~falnr and cir~falnr = lei~falnr and cir~storn = lei~storn

   WHERE  fal~einri IN p_einri AND

          fal~falnr IN p_falnr AND

          fal~erdat IN p_erdat AND

          fal~storn IN p_storn

          %_HINTS ORACLE 'INDEX("NFAL" "NFAL~Z2")'

.

 




Viewing all articles
Browse latest Browse all 3316

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>