Hi. i'm trying to write an e-sql statement that retrieves all records in a table called 'Medias' and also, number of the comments those belong to each Media, by MediaID (in the Comments table). i've tried several statements like this but i always get error:
SELECT m.MediaTitle, m. SuggestedBy, m.Summary, (Select COUNT(c.MediaID) FROM Comments WHERE c.MediaID = m.MediaID) AS TotalComments FROM Medias AS m
i know this may sound easy but i'm in trouble with this :(. i would appreciate if you could help. thanks a lot.
Childhood's over the moment you know you're gonna die.