troubleshooting Question

Not receiving values from database

Avatar of ExtremeFitness
ExtremeFitness asked on
Crystal Reports
5 Comments1 Solution242 ViewsLast Modified:
I have several databases with the store procedure identified below.  When I connect to all but one I get the value for the gross field, but in one of the location I get zeros for the gross field in Crystal Report.  Can anyone shed some light?



ALTER PROCEDURE [dbo].[USP_CorporateDealsPaidByMember]
      @sDate DATETIME,
      @eDate DATETIME
 AS
      
SELECT C.Employer, C.Old_Contract_Id, C.First_Name, C.Last_Name,
      C.Monthly_Dues, MS.Status, C.Date, Option_Name, ISNULL(C.Initiation,0) + (ISNULL(C.Term, 0) * ISNULL(C.Monthly_Dues,0)) AS Gross
FROM Customers AS C JOIN
      Member_Status AS MS ON MS.Status_Id = C.Status
WHERE (Option_Name LIKE '%20[%]%' OR Option_Name LIKE '%30[%]%' ) AND
      Debit_Method <> 'PDC' AND
      C.Date BETWEEN @sDate AND @eDate AND
      C.Employer <> ''

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros