MySQL Forums
Forum List  »  Microsoft SQL Server

Re: self join
Posted by: Roland Bouman
Date: August 28, 2005 07:05AM

What do you mean, "create a copy"?

As far as i can see, this query just returns all rows that happen to have the value in the name field equal to the value in the owner field. This would be a sef join:

SELECT *
FROM mid n
inner join mid o
WHERE n.name=o.owner
;

No explicit copying involved.

Options: ReplyQuote


Subject
Written By
Posted
August 25, 2005 11:57PM
Re: self join
August 28, 2005 07:05AM
September 15, 2005 08:13AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.