A
Al
I have a query based upon a table (ClientInfo) with 362 rows that because of
a Select statement in one of the Fields it translates to 14560 rows.
Here's what I am doing:
ClientInfo Table: SiteChange Table:
ClientNo (Text) OldSiteNo (Text)
Status (bit) NewSiteNo (Text)
Comment (Text)
Site number is buried in the ClientNo. left([ClientNo],3) extracts it. My
Select is as follows:
Site: (SELECT [NewSite] FROM [SiteChange] WHERE [OldSite]=Left([ClientNo],3))
The SQL for this query looks like this:
SELECT ClientNo, (SELECT [NewSite] FROM [792_SiteChange] WHERE
[OldSite]=Left([PNO],3)) AS Site FROM ClientInfo;
My ultimate goal is to update the ClientNo with the newSite Information.
How can I stop the cartesian results?
Thanks for you replies!!
a Select statement in one of the Fields it translates to 14560 rows.
Here's what I am doing:
ClientInfo Table: SiteChange Table:
ClientNo (Text) OldSiteNo (Text)
Status (bit) NewSiteNo (Text)
Comment (Text)
Site number is buried in the ClientNo. left([ClientNo],3) extracts it. My
Select is as follows:
Site: (SELECT [NewSite] FROM [SiteChange] WHERE [OldSite]=Left([ClientNo],3))
The SQL for this query looks like this:
SELECT ClientNo, (SELECT [NewSite] FROM [792_SiteChange] WHERE
[OldSite]=Left([PNO],3)) AS Site FROM ClientInfo;
My ultimate goal is to update the ClientNo with the newSite Information.
How can I stop the cartesian results?
Thanks for you replies!!