Frank Mamone wrote:
> TABLE2 is actually the same table so I need to use an alias. Without a
> from I cannot give it an alias name.

If TABLE1 and TABLE2 are the same table, your example:
     UPDATE TABLE1
     SET TABLE1.FIELD = TABLE2.FIELD
     FROM TABLE1, TABLE2
     WHERE TABLE1.KEY = TABLE2.KEY
     AND TABLE1.FIELD = 'Y'

simplifies to a no-op:
     UPDATE   TABLE1
     SET      FIELD = FIELD
     WHERE    FIELD = 'Y'

which is probably not what you want.

How about giving us the real schema?

Jochem

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:190954
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to