Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Expression in table joining Post Reply Post New Topic
Author Message
RafRaf
Newbie
Newbie
Avatar

Joined: 15 Mar 2013
Location: Algeria
Online Status: Offline
Posts: 1
Quote RafRaf Replybullet Topic: Expression in table joining
    Posted: 18 Mar 2013 at 12:13am
Hi,

Is it possible to join tables in Crystal Records by using not simple and usual field A = field B but something more complex like:

select * from table1 inner join table2
on table1.A=2*table2.B

or

select * from table1 inner join table2
on ASCII(table1.A)=ASCII(table2.B)


IP IP Logged
Sastry
Moderator
Moderator
Avatar

Joined: 16 Jul 2012
Online Status: Offline
Posts: 537
Quote Sastry Replybullet Posted: 18 Mar 2013 at 1:05am
Hi
 
If you are able to execute the SQL statements at database end then those statements are valid and can be used in crystal reports 'Add Command '
 
If it is giving any error means, your driver is unable to understand the SQL.  So always use a latest driver to avoide run time errors.
Thanks,
Sastry
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3701
Quote hilfy Replybullet Posted: 18 Mar 2013 at 11:11am
By way of explanation, in Crystal a Command is just a SQL Select statement that will pull all of the data that you need for your report.  Joining a Command to tables or using multiple Commands is not recommended as it will significantly affect the speed of your report.  If you need to use parameters with a command, DO NOT create them in the report itself - instead create them in the Command Editor and use them in the SQL.
 
-Dell
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.029 seconds.