wsproperties
MIS
Using sql 2005, I have 2 fields, bioID and MillID. I want to create and populate another field, lets call it Combine. If the contents of bioID equal MillID then I want to print 'N', else if the contents of bioID are not equal to MillID I want to populate the same field with a 'Y' So far my structure looks like this
select bioID, MillId, LName, FName
From biotable left outer join Name
on nameid = bioID
How would I accomplish what i said up top and where would I place the if then code.
select bioID, MillId, LName, FName
From biotable left outer join Name
on nameid = bioID
How would I accomplish what i said up top and where would I place the if then code.