Skip to content
Advertisement

How to create a derived attribute column in sql which is sum of other two existing columns

I want to have a column selling_price which is sum of scost and dcost.

Advertisement

Answer

You can use MySQL generated columns for it. Reference Doc

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement