SQL Server and Calculated Fields? -


I am creating an app that can earn "points" in many different ways. Some of these points are attributed to their profile, their actions, etc. (i.e., spread across multiple tables).

If there are some actions, I do not want to add points manually to the field because I want to ensure the number continuity, I have to keep some kind of calculated field, which is easy to query for a field Keeps updating their points in The reason for this is that whenever I want to list a group of users and their points (like the list of the top 100), then I do not want to run a very complex selection / view.

Is there a way to calculate a field in the user table using a complex selection statement on multiple tables? Is it efficient? Should I just ditch the calculated field and go with a well written process?

If it has several tables

, I To obtain, I recommend using these tables, or viewing a user-defined table / scalar (depending on your requirements) function.

Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -