Hi

I need to condense these queries into one, can anyone help?

<cfquery name="residential" datasource="remotename">
  SELECT mls, type, asking_price, address, city, state, zip
 FROM Residential, Commercial, Multi_Family, Land
  WHERE listing_office #Request.App.Idx# AND agent = '#Request.User.Idx#'
</cfquery>

<cfquery name="commercial" datasource="remotename">
  SELECT mls, type, asking_price, address, city, state, zip
 FROM Commercial
  WHERE listing_office #Request.App.Idx# AND agent = '#Request.User.Idx#'
</cfquery>

<cfquery name="multi" datasource="remotename">
  SELECT mls, type, asking_price, address, city, state, zip
 FROM Multi_Family
  WHERE listing_office #Request.App.Idx# AND agent = '#Request.User.Idx#'
</cfquery>

<cfquery name="land" datasource="remotename">
  SELECT mls, type, asking_price, address, city, state, zip
 FROM Land
  WHERE listing_office #Request.App.Idx# AND agent = '#Request.User.Idx#'
</cfquery>

-- 
Chris Edwards
Web Application Developer
Outer Banks Internet, Inc.
252-441-6698
[EMAIL PROTECTED]
http://www.OuterBanksInternet.com

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Reply via email to