I'm a SQL newbie.
How can I return the average of a column for each row in a table?
Here is my Comments table - it's ratings and comments about games, one user comment per row. How can I compute the average Rating for each GameID?
CREATE TABLE [Comments](
[CommentID] [int]
[GameID] [int]
[UserID] [varchar](50)
[Comment] [varchar](2500)
[Rating] [int]
)
Thanks
How can I return the average of a column for each row in a table?
Here is my Comments table - it's ratings and comments about games, one user comment per row. How can I compute the average Rating for each GameID?
CREATE TABLE [Comments](
[CommentID] [int]
[GameID] [int]
[UserID] [varchar](50)
[Comment] [varchar](2500)
[Rating] [int]
)
Thanks