Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: SQL from crystal XI Post Reply Post New Topic
Author Message
bobsn
Newbie
Newbie


Joined: 19 Mar 2007
Online Status: Offline
Posts: 27
Quote bobsn Replybullet 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.

any clue what's going on behind the scenes...

thanks


Edited by bobsn - 04 Apr 2007 at 11:21am
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet 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>
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
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



This page was generated in 0.031 seconds.