Same way IF statement works in Excel, I have a table in SQL with blank fields under gender column. I would like the column to be populated with Male or Female based on the title column...ie UPDATING TABLE so that if Mr, add Male under gender record, if Miss or Mrs, add Female to gender column Table name is Kimobase
Title Firstname Lastname Telephone Title Gender More columns
1 Mr Adam Smith 001 Mr
2 Mrs Angela Evans 002 Mrs
3 Mr Bill Towny 003 Mr
4 Miss Dame Beaut 004 Miss
I am interested in transforming it as per below
Title Firstname Lastname Telephone Title Gender More columns
1 Mr Adam Smith 001 Mr M
2 Mrs Angela Evans 002 Mrs F
3 Mr Bill Towny 003 Mr M
4 Miss Dame Beaut 004 Miss F
Many thanks