macromedia.coldfusion.getting_started
[Top] [All Lists]

Re: A little help with some code and theory

Subject: Re: A little help with some code and theory
From: "paross1" <webforumsuser@xxxxxxxxxxxxxx>
Date: Fri, 25 Jul 2008 20:56:42 +0000 (UTC)
Newsgroups: macromedia.coldfusion.getting_started

Not sure if this is what you are looking for, but something like this should 
give you the apps in workstationApps that are still available (have fewer 
"installs" than maxConcurrentInstalls).

 SELECT w.*
 FROM workstationApps w
 WHERE (SELECT COUNT(wi.appID)
 FROM workstationAppIndex wi
 WHERE wi.appID = w.id) < w.maxConcurrentInstalls
 <cfif isDefined("form.searchCriteria")>
 AND w.searchType like '%#form.searchCriteria#%'
 </cfif>

 (NOTE: I'm not sure what you meant by [i]#form.searchType# like 
'%#form.searchCriteria#%'[/i] except that you probably meant to say something 
like [i]searchType like '%#form.searchCriteria#%'[/i], or something like it)

 Phil


<Prev in Thread] Current Thread [Next in Thread>