When i enter omething to table A is it possible somehow that some values will be calculated from the values in table A and the will be a new entry in table B relating those values?
and all of this done in the database and not from the client that updating the database .
I work with MSSQL and MySql , can you give me directions how i can do those things in those databases ?
You can use trigger for it.
For Mysql,
http://dev.mysql.com/doc/refman/5.0/en/triggers.html
I am not sure about MSSql since i work with Mysql, but you can check,
http://msdn.microsoft.com/en-us/library/ms189799.aspx