Change it so it has an arrival date and a departure date? :D

On 7/28/05, Doug Bedient <[EMAIL PROTECTED]> wrote:
> I have 2 tables, one lists properties and the other contains arrival dates 
> and number of nights for those properties. The common variable is 'unitCode'. 
> The search parameters provide an arrival date and departure date.
> 
> My question. How would you use the arrival date/number of nights to locate 
> availability between two search dates.
> 
> <CFQUERY NAME="Check" DATASOURCE="#db#">
> SELECT DISTINCT property_ID  FROM Property P
> LEFT OUTER JOIN propertyCalendar PC ON P.unitCode = PC.unitCode
> 
> WHERE ???
> 
> </CFQUERY>
-- 
"You can't destroy EVERYthing. Where would you sit?" The Tick

Now blogging....
http://www.blivit.org/blog/index.cfm
http://www.blivit.org/mr_urc/index.cfm

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

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

Reply via email to