I have two tables:
1) Streams
2) Comments
Inside Streams I want to create a Comments columns. I would like to have the Comments column in the Streams table calculated depending on how many Comments there are with the matching StreamId.
Is there an easy way to alter the current Streams table? Thank you.
You can use
And then
Do not use triggers to this task, they are more dificult to maintain and to understud