alwayshouston
MIS
Hi All
I am kind of stuck on this simple query that I need to create. I have written a function for this, but I get an error. I am wandering if I can get the results without writing a function. Below is the data and I need to find Max_Score for each row via SQL
Company_ID Score1 Score2 Score3
1000000000 5 10 15
1000000001 1 -5 0
1000000002 355 254 47
My output should be :
Company_ID Score1 Score2 Score3 Max_Score
1000000000 5 10 15 15
1000000001 1 -5 0 1
1000000002 355 254 47 355
Thanks in Advance!
I am kind of stuck on this simple query that I need to create. I have written a function for this, but I get an error. I am wandering if I can get the results without writing a function. Below is the data and I need to find Max_Score for each row via SQL
Company_ID Score1 Score2 Score3
1000000000 5 10 15
1000000001 1 -5 0
1000000002 355 254 47
My output should be :
Company_ID Score1 Score2 Score3 Max_Score
1000000000 5 10 15 15
1000000001 1 -5 0 1
1000000002 355 254 47 355
Thanks in Advance!