I have two tables to which I join the following query ...
select *
from Partners p
inner join OrganizationMembers om on p.ParID = om.OrganizationId
where om.EmailAddress = 'my_email@address.com'
and om.deleted = 0
Which works fine, but some of the columns from PartnersI want to replace the columns with the same name from OrganizationMembers. The number of columns that I want to replace in the joined table is very small, should not be more than 3.
You can get the result that I want by selectively selecting the columns that I want in the resulting join, for example ...
select om.MemberID,
p.ParID,
p.Levelz,
p.encryptedSecureToken,
p.PartnerGroupName,
om.EmailAddress,
om.FirstName,
om.LastName
from Partners p
inner join OrganizationMembers om on p.ParID = om.OrganizationId
where om.EmailAddress = 'my_email@address.com'
and om.deleted = 0
But this creates a very long sequence select p.a, p.b, p.c, p.d, ... etc ..., which I am trying to avoid.
Partners 3 OrganizationMembers, . ?