Hi everyone,
I have a question on the TSQL Syntax.
Now, I have 2 table which is Service & Rating:
Service:

Rating:

As you can see, the Rating_Id in the Rating table has many Services_Id values = 1
Now I want to get the Average Rating Score and display on the webpage, the TSQL that I tried:
- SELECT AVG(r.Score),s.*
- FROM Services s
- FULL OUTER JOIN Rating r ON r.Services_Id = s.Services_Id
- GROUP BY s.Services_id, r.Services_Id
How can I achieve that
Please help
Thank you
Amit GuptaPosted Jan 29, 2021, 10:53 AM
satheesh dPosted Oct 30, 2021, 11:38 AM
Yong KevinPosted Jan 29, 2021, 10:55 AM
Amit GuptaPosted Jan 29, 2021, 10:33 AM
Yong KevinPosted Jan 29, 2021, 6:13 AM
Amit GuptaPosted Jan 29, 2021, 4:55 AM
Yong KevinPosted Jan 29, 2021, 12:37 AM
Laxmidhar SahooPosted Jan 28, 2021, 8:01 PM