perrydaniel
Technical User
Hi Guys,
I have the following query, which is working well, except on the part where I am looking at 'Client Status'=1. The query returns all of the ClientStatus results not just the 1's.
Any help would be gratefully appreciated.
Thanks
Perry
INSERT INTO EnquiryTemp ( PropertyID, ClientID, RequirementId, Reference )
SELECT T1.PropertyId, T2.ClientId, T2.RequirementId, T1.Reference
FROM Property AS T1, Requirement AS T2, Client AS T3
WHERE (((T1.Location)=T2.PreferredLocation) And ((T1.GuidePrice)>=T2.MinPrice And (T1.GuidePrice)<=T2.MaxPrice) And ((T1.PropertyType)=T2.PropertyType)) And ((T1.PropertyStatus)=1) And ((T3.ClientStatus)=1) And (((T1.NewProperty)=T2.NewProperty));
I have the following query, which is working well, except on the part where I am looking at 'Client Status'=1. The query returns all of the ClientStatus results not just the 1's.
Any help would be gratefully appreciated.
Thanks
Perry
INSERT INTO EnquiryTemp ( PropertyID, ClientID, RequirementId, Reference )
SELECT T1.PropertyId, T2.ClientId, T2.RequirementId, T1.Reference
FROM Property AS T1, Requirement AS T2, Client AS T3
WHERE (((T1.Location)=T2.PreferredLocation) And ((T1.GuidePrice)>=T2.MinPrice And (T1.GuidePrice)<=T2.MaxPrice) And ((T1.PropertyType)=T2.PropertyType)) And ((T1.PropertyStatus)=1) And ((T3.ClientStatus)=1) And (((T1.NewProperty)=T2.NewProperty));