W
W
woodyJS2017-05-17 17:37:41
Database
woodyJS, 2017-05-17 17:37:41

Calculated fields in MS SQL?

I started to study databases and came across such a thing as calculated fields in MS SQL Server. So, is it possible to make it so that, for example, having a database of negotiation bodies.
with tables (Subscribers, calls, cities, etc.) in the "calls" table there is a column "total cost of a call" (which is calculated by the duration * cost of a call to this city (rubles / min)), and the column "call cost per minute" is in the city table.
So is it possible to make sure that in each new row this column is calculated independently by taking data from other tables ...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
longclaps, 2017-05-17
@woodyJS

Yes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question