Please post DDL, so that people do not have to guess what the keys, constraints, Declarative Referential Integrity, data types, etc. in your schema are. Learn how to follow ISO-11179 data element naming conventions and formatting rules. Temporal data should
use ISO-8601 formats. Code should be in Standard SQL as much as possible and not local dialect.
This is minimal polite behavior on SQL forums.
>> I have a 7 fields [sic]; MON, TUES, WED, THURS, FRI, SAT, & SUN which contain a 'Y' or 'N'. <<
WRONG.
1. CASE is an expression and not a statement.
2. Columns are not fields.
3. The days of the week are not attributes; they are values on a temporal scale. And we usually use a two-letter abbreviation code or the ISO numeric 1-7 code.
4. We do not use assembly language bit flags in RDBMS. Read: https://www.simple-talk.com/sql/t-sql-programming/bit-of-a-problem/
>> I would like to aggregate this information into one field [sic] within my select statement. I would like to place a 'M', 'T', 'W', 'R', 'F', 'S', and 'U', respectively, into my aggregated field [sic] if a 'Y' is found in the corresponding day field
[sic]. So if the MON & WED fields [sic] are 'Y' my final result would be 'MW' in my aggregated field [sic]. <<
Why? This will destroy First Normal Form (1NF)! It would also mean that you are doing display formatting in the database.
>> What is the best way to code this in T-SQL; using case or some other means? <<
CREATE TABLE Nameless_Something
(foobar_date DATE NOT NULL PRIMARY KEY,
week_day AS DATEPART(WK, foobar_date));
Now do the display formatting on the computed column.
>> I have tried to do this with a CASE statement [sic] but in T-SQL the first time a condition is met control jumps out of the CASE statement. This is unlike other languages where you have to explicitly escape the CASE. <<
No, lots of languages outside of the C family use a switch like this. Look at Pascal, ADA and other higher level modern application languages as well as declarative languages.
Most of the work in SQL is in the DDL, not the DML