Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: How to incorporate Complex sub queries in reports Post Reply Post New Topic
Author Message
pparukola
Newbie
Newbie
Avatar

Joined: 17 Nov 2009
Location: India
Online Status: Offline
Posts: 8
Quote pparukola Replybullet Topic: How to incorporate Complex sub queries in reports
    Posted: 30 Dec 2009 at 2:39am
Hi,

Is there any provision that i can incorporte the below query in Cryatal reports with just using tables (i.e, not using command line or stored procedure).

Please find the query----------
-------------------------------
SELECT DISTINCT
          ISNULL(P.U_city, '')+ ' ' + ISNULL(P.U_state, ''),
          ISNULL(P.[name], ''),
          ISNULL(TL.empName,''),
          ISNULL(STL.empName,'')
FROM               [Plan]                    P
LEFT OUTER JOIN (SELECT empName,planId,PositionName FROM V_teamLeaders_1 WHERE PositionName LIKE 'Team Leader') TL ON P.planId = TL.placeId
LEFT OUTER JOIN (SELECT empName,planId,PositionName FROM V_teamLeaders_1 WHERE PositionName LIKE 'Site Team Leader') STL ON P.planId = STL.planId

Thanks in advance,

Edited by pparukola - 30 Dec 2009 at 2:41am
Regards,
Pavan

Try around, things definitely will work.
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.