on 07-21-2016 11:54 AM
Hi All, I am trying to model a calculation view as per attached joint but not getting the desired result . Left table is AFVC & Right table is AFKO . AUFPL is common field . For one record in right table AFKO, there are multiple corresponding records in left table AFVC and also, there are some records in left table AFVC which are not available in right table AFKO ( due to filter put for field AUART in table AFKO ,however same field is not available in table AFVC to put the same filter ) . I need to populate all records from left table but without those records which are not available in right table . Thanking you in advance . BR,
I feel , you need Inner Join in that case unless I misunderstood your requirement .
Regards
Anindya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the reponse . In case of inner joint for this scenario , i wil get only common records . However, my scenario is different as explained below .
say in table AFKO, value of field AUFPL is 1 . This value repeates in table AFVC ( in this table ,let us take 2 field. One is AUFPL & another is APLZL ) One combination in table is AUFPL = 1, APLZL = a ,another combination in table AFVC is , AUFPL = 1 , APLZL = b & so on ) . Along with these values , in table AFVC there are other records example, AUFPL = 101 , APLZL = x ( these values are not available in table AFKO , So i do not need this record ) . In my report , only there will be 2 records ( with value of one record is AUFPL=1 ,APLZL =a and another record AUFPL= 1 ,APLZL= b ) even though there are 3 records in table AFVC.
Please suggest .
Hi Anindya/Pranjal,
May be Im missing the point here, but can you explain why you need to filter values in AFVC?
Inner join with cardinality of n:1 will return the 2 records - ( AUFPL=1 ,APLZL =a and AUFPL= 1 ,APLZL= b ) even though there are 3 records in table AFVC.
I dont see why we need to filter, as the inner join with n:1 may work fine in this case.
Thanks!
I still have some doubt about the requirement . What I assumed is , he needs APLZL values a and b and some other fields associated with it . So, suggested to use a filter.
However, after all the conversation I feel his requirement could be like this .
1) Take all AUFPL from AVFC where APLZL in ( a, b, c ..... ) .
2) Select all records from AFKO where AUFPL in list in step 1 .
Pranjal, can you please clear your requirement once again and just explain the table structure ?
As you have mentioned that filter(AUART) is there on table AFKO
Left Table : AFKO
Right Table : AFVC
Join Type : Inner/Referential
Cardinality : 1:N
This will fetch you mulitple AFVC- AUFPL/APLZL for the corresponding AFKO-AUFPL
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.