I need to create a new column for my query labeled Tags
There are three tags and the definitions are below:
Metro: City = Chicago
Mailing: ACNT = 'ACT'
Greeting: Salutation in ('Ms.','Mrs.')
Current table:
ID Salutation City State ACNT
01 Ms. Delray Beach FL
02 Mrs. Lauderhill FL DCT
03 Ms. New York NY
04 Ms. Chicago IL ACT
05 Chicago IL ACT
I need to add a column Tags to my output, like this.
ID Salutation City State ACNT Tags
01 Ms. Delray Beach FL Greeting
02 Mrs. Lauderhill FL DCT Greeting
03 Ms. New York NY Greeting
04 Ms. Chicago IL ACT Metro, Greeting, Mailing
05 Chicago IL ACT Metro, Mailing
I have used Stuff
before but not in this manner. Any help/guidance would be appreciated.