SQL: Sum of max of each column

Tags:
SQL
How can I do sum of max of each column in SQL?

Column 1 column 2
 

2 3
 

10 4
 

16 5

Should return:

Column1 column2 column3
 

2 3 21          
 

10 4 21
  16 5 21



Software/Hardware used:
sql
0

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • ToddN2000
    Sounds like a class assignment. Try it. If you have problems post your code and we will help you straighten it out. If we do the code, we take away your ability to learn by reinforcing the knowledge.
    131,605 pointsBadges:
    report
  • Subhendu Sen
    Yes, assuming you are in a learning process. Read and study your study materials and try to gather solid knowledge for your future prospect. Here is a good concepts from w3schools: https://www.w3schools.com/sql/sql_min_max.asp
    137,090 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: