I'm creating a view as such:
CREATE VIEW all AS
SELECT m.id, m.title, m.description, m.date, m.views, r.rating, r.id
FROM riv_montage m, riv_ratings r
But I'd like to create a calculated field on each row that does something like:
r.rating/COUNT(r.id)
Is there any way to do this?