SET @AvgRating =
(SELECT AVG(Rating)
FROM Comments
WHERE Comments.VidID = 1)
SET @NumRatings =
(SELECT COUNT(*)
FROM Comments
WHERE Comments.VidID = 1)
=> Can I combine these two statements somehow so I can fill both variables with one SQL statement?
Thanks!
Matt