Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: SQL Where Problem Post Reply Post New Topic
<< Prev  Page  of 2
Author Message
MWToine
Newbie
Newbie


Joined: 10 May 2009
Online Status: Offline
Posts: 4
Quote MWToine Replybullet Posted: 13 Oct 2011 at 8:47am
It appears that your datatype is a string (not a number).  You may want to try WHERE TRIM(GRPTAB_ORDER) ='2';
 
OR
 
WHERE TONUMBER(GRPTAB_ORDER) = 2;
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 13 Oct 2011 at 9:27am
i also considered a trim function except for the fact that the SQL when run in the DB returns the expected results and in crystal does not. The sql run would have had the same problem ast eh crystal with fields that had spaces in them (' 2 ' vs. '2').
IP IP Logged
<< Prev  Page  of 2
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