This effect cannot be produced directly in a table, one of the principles in a relational database is that calculated data is not stored, since it can be calculated.