Jump to content

[SOLVED] Can a table column be the result of two columns values?


beedie

Recommended Posts

If it is something about sum of other fields and displaying it... in Excel, you place this on a cell. In MySQL, I don't recommend it. Instead, you can use MySQL functions to do that... you can use SUM() or just simply use + for adding fields if not that complicated. :)

 

Jay,

Simple I think.

Like in an Excel database where a field can be the sum of other fields ho is this done in Mysql?

I don't see it.

The question is why.

 

It is rather how than why - "ho" missing "w" to make the statement correct.

 

And again, you do not need to add a field (as cell for excel) for MySQL to store sum, you just need to use + operator or SUM() function in the query, which ever you need, so you won't see it in MySQL naturally.

 

Excel is not a database in nature, but can be a database in context. MySQL is a database in nature and in context.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.