On 8/16/06, Philip B <[EMAIL PROTECTED]> wrote:

What would be the equivalent in SQL Server syntax to do the following:

*-------------------------------------------------------------------
SELECT 0
USE Persons

SELECT 0
USE EmailAdd ORDER PersonID
SET FILTER TO type = "PRIVATE" IN EmailAdd

SELECT Persons
SET RELATION TO PersonID INTO EmailAdd
REPLACE ALL DefEAddress WITH EmailAdd.EAddress IN Persons
*-------------------------------------------------------------------


If I understand the relations properly,

UPDATE Persons SET DefEAddress TO EmailAdd.EAddress
WHERE Persons.PersonID = EmailAdd.PersonID
AND EmailAdd.type = "PRIVATE"

--
Ted Roche
Ted Roche & Associates, LLC
http://www.tedroche.com


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to