If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Crystal Reports > New to crystal reports

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-07-11, 09:17
sum1nil sum1nil is offline
Registered User
 
Join Date: May 2011
Posts: 1
Question New to crystal reports

Hi, is it possible to use pre-existing formulas and parameters in an sql expression. For example, I want to use a data field and a crystal report parameter in a sql expression to sum a calculated field. I have tried to make a sql expression such as:

Code:
SELECT SUM([Total Minutes]) / 15
FROM ClientTimes 
WHERE ClientID = (select ClientID from ClientNames where [Full Name] = {ClientName})
AND DATEADD(dd, 0, DATEDIFF(dd, 0, TimeIn)) = {fn Convert(DateTime,{Day0}}
Where: ClientName is a formula and Day0 is a parameter.

Very new to this and would greatly appreciate any info on how to do this.
Thank you.
Reply With Quote
Reply

Tags
parameters in sql

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On