MySQL Forums
Forum List  »  Newbie

Re: Select table within a table and update column based on initials and surname
Posted by: John Biddulph
Date: May 30, 2018 08:54AM

I think it needs to be something like this?!

SELECT *
FROM tblcontacts
WHERE id IN (SELECT CustomerID, Initials, Surname
FROM customer
WHERE CONCAT(customer.Initials, customer.Surname) = CONCAT(tblcontacts.firstname, tblcontacts.lastname) )


but still doesn't work?!

Options: ReplyQuote




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.