I’ve this table
col 1 col 2 col 3 .... col N
-------------------------------------
1 A B fooa
10 A foo cc
4 A B fooa
it is possible with a tsql query to return only one row with a value only where the values are ALL the same?
col 1 col 2 col 3 .... col N
-------------------------------------
-- A -- --
You have to allow for NULLs in the column:
That is, a columns with a mix of As and NULLs isn’t one value. MIN and MAX would both give A because they ignore NULLs.
Edit: