Sorry, I should read the message before responding. Disregard last
response.

John 

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 24, 2005 2:26 PM
> To: SQL
> Subject: How do you do an IF condition in where statement
> 
> How would you write this regular Cold Fusion query in TSQL for a 
> stored
> procedure:
> 
> select *
> from profiles
> where 0=0
> <cfif form.firstname neq ''>and
> firstname=#form.firstname#</cfif> <cfif form.lastname neq ''>and 
> lastname=#form.lastname#</cfif> <cfif form.phone neq ''>and 
> phone=#form.phone#</cfif>
> 
> I tried a few times, I can't quite get the hang of IF statements in 
> TSQL for some reason, even tho. in CFMX they're juz a piece of cake.
> 
> Thanks,
> Pardeep.
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:6:2171
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/6
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:6
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.6
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to