Joined: 26 Jun 2013
Online Status: Offline
Posts: 30
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
Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
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.
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