Joined: 19 Mar 2007
Online Status: Offline
Posts: 27
Topic: SQL from crystal XI Posted: 04 Apr 2007 at 11:21am
Hi all, In the query panel, when I add some objects in the "Result Objects" section in a certain order and when I put the same set of objects in a different order, I see there's a difference in joins in the SQL that's generated.. The objects do come from different tables, but why should the order of putting the objects in the panel change the joins in the SQL.
Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Posted: 04 Apr 2007 at 3:37pm
Crystal uses various tests to see if a field from one table should be joined with a field from another table. When you put the fields in a different order then it changes where Crystal starts the evaluation process as well as the sequence for comparing the tables. It's not an exact science and a different order can have different results.
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum