I'm trying to pull some details from my Access DB. I'm trying to list the PropertyAgent's details and also list (as a count) how many properties (propertydataid) they have.
<CFQUERY NAME="GetAgentList" datasource="020">
SELECT
PropertyAgent.PropertyAgentID,
PropertyAgent.PropertyAgentCompanyName,
PropertyAgent.PropertyAgentContactSurname,
PropertyAgent.PropertyAgentContactFirstName,
PropertyAgent.PropertyAgentVillageTown,
PropertyAgent.PropertyAgentAuthorityLevel,
Count(PropertyData.PropertyDataID) as PropertyCount
FROM
PropertyAgent, PropertyData
</CFQUERY>
If somebody could help it would be appreciated.
Thanks,
Stuart
ps: i'm going to put in the cfparams after.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

