Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: SQL Expression Help Post Reply Post New Topic
Author Message
kgbo
Newbie
Newbie


Joined: 26 Jun 2013
Online Status: Offline
Posts: 30
Quote kgbo Replybullet Topic: SQL Expression Help
    Posted: 05 Jul 2013 at 9:53am
How would one translate this into a proper SQL Expression on Crystal:
 
select "Staff"."Initials" from "Staff"
left join "Staff" on "Ldg_Tran"."Billing_MD_ID"="Staff"."Staff_ID"
where "Ldg_Tran"."Proc_DtTm" between 4/5/2013 and 4/12/2013
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 09 Jul 2013 at 5:04am
that makes no sense...
I would expect something like:
select staff.initials
from staff
left join ldg_tran
   on ldg_tran.billing_md_id = staff.staff_id
where ldg_tran.proc_dttm between '4/5/2013' and '4/12/2013'


the original post was missing the definition for ldg_tran in the from clause...unless that is how CR formats its sql.

at least that is what I would enter into query analyzer to get a response back from sql server.

HTH
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.047 seconds.