Jump to content

summing two or more columns in sql database


ninedoors

Recommended Posts

Is there a way to have a database column that is the product of a function (say addition) of two or more other columns?  If so how do you go about doing that.  I run a hockey league and I do player stats for the league.  I want to know if the points column in my database can just be my goals column and assists column added together, so that any time any players goals or assists are altered the points column is updated as well.  I want to use this process for points per game and other stats as well.

 

Nick

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.