I have a table in SQL Server and have a column that I want to calculate the minimum value from three other columns (Vendor1, Vendor2, and Vendor3). I have figured out how to sum the values but can’t figure out how to find the minimum value- I keep getting an error that an aggregate may not appear in a computed column. Is there a simple way to figure this out?
Share
You can use a
CASEexpresionBut having columns
Vendor1 - 3probably indicates that your table is not in first normal form.