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

Re: Inner Join on subset of a Table

$
0
0

Hi Chris,

 

Yes you can do a Inner Join on TABLE1 & TABLE2,

 

select b~id  b~date  b~id_string

into table <itab>

from table1 as a

inner join table2 as b on a~id = b~id

where a~id = <id_value>

and    b~date  LE  <sy-datum> . "based on the DATE

 

by the above statement you will get all the records in <itab> where the record DATES are less than or equal to desired Date.

 

So based on the requirement do your operations on <itab>.

 

I think this will do!!!

 

Regards,

Santosh.


Viewing all articles
Browse latest Browse all 9091

Trending Articles



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