The following query (when used with the rest of my code) returns a band name, album name, review page link (using reviews.id), and the total number of comments made by users to date. However, if no comments have been made, it does not return that record at all. Can I alter this query to allow for those null records, or will this need to be specified elsewhere in the code? If so, how? I'm fairly new and could not find a solution in the manual or on the boards.
select reviews.id, reviews.band, reviews.album, count(reviewcomments.review) as revcount from reviews, reviewcomments where reviews.id = reviewcomments.review group by reviews.id, reviews.band, reviews.album
Much thanks in advance if anyone can help!