Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

I need help

Former Member
0 Likes
749

Hi friends,

what is the main difference between the Innejoin and For all Entries

Performance wise which one is the best

Please Help me.

Regards,

Srilavi

6 REPLIES 6
Read only

Former Member
0 Likes
725

Check these links:

Read only

Former Member
0 Likes
725

Hi Srilavi,

Click here: /people/rob.burbank/blog/2007/03/19/joins-vs-for-all-entries--which-performs-better .

You will get to know <b>complete details</b> about JOINS vs FOR ALL ENTRIES.

Hope you will understand clearly about these JOINS vs FOR ALL ENTRIES.

<b>Reward if helpful</b>

Regards,

V.Raghavender.

Read only

Former Member
0 Likes
725

hi,

INNER JOINs gives the intersection of the tables that meet the WHERE clause.

FOR ALL ENTRIES eliminates duplicates from the results that meet the WHERE clause.

regards,

ananth

Read only

former_member673464
Active Contributor
0 Likes
725

hi,

Inner join is used to retrive data from data base using specific condition in single internal table where as in for all entries you retrieve data into two different internal tables.You need to again merge two tables to get the required information.

regards,

veeresh

Read only

Former Member
0 Likes
725

Hi!

INNER JOIN is used if we want to retrieve some data from more than one table.

FOR ALL ENTRIES is used if we want some data from a table based on some conditions of some other table.

Using several nested INNER JOIN statements can be inefficient and cause time out if the tables become too big in the future."

In ABAP, these joins are first split by the ABAP processor and then sent to the database, with the increase in DATA in production system, these joins tend to give way if your database keeps growing larger and larger.

You should rather use "FOR ALL ENTRIES IN" (Tabular conditions), which is a <b>much efficient way as far as performance is concerned.</b>

Reward points if it helps.

Regards,

Neha Bansal.

Read only

Former Member
0 Likes
725

Hi Srilavi,

Inner join is a statement which is used between more than one Db table.

For all entries is a statement which is used between an internal table and a Db table.

We cannot always say that a join is better than For all entries or vice-versa.

It depends.

The join's performance will always remain the same.

However, for all entries poses an interesting scenario.

Performance would differ if you interchange the tables.

For eg.

Statement 1 : select * from B for all entries in A.

Statement 2 : select * from A for all entries in B.

The above statements would give different performance results.

It all depends on the entries in Production.

Generally it is seen that a join yields better performance.

Regards,

Ravi