Writing Code
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Writing Code
Message Icon Topic: Convert this SQL to crystal syntax Post Reply Post New Topic
Author Message
cool_geek
Newbie
Newbie


Joined: 31 May 2012
Online Status: Offline
Posts: 1
Quote cool_geek Replybullet Topic: Convert this SQL to crystal syntax
    Posted: 31 May 2012 at 6:25am
Select <field_name1>,count(1)
from <table_name>
where <field_name2>= <value1>
and   <field_name3> = <value2>
abd   <date_field> between <start_date_parameter> and <end_date_parameter>
group by <field_name1>

thanks a bunch
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 01 Jun 2012 at 4:59am
Huh?  If you put the above SQL in a command it should work.  Of course you can only do that in certain versions of CR.  In the newer versions of CR you can use parameters in the SQL and they are in the form of '{?parameter_name}'

I hope this helps.
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.016 seconds.