0
SELECT t.title, (
SELECT AVG(star_rating)
FROM reviews r
WHERE r.id = t.id) AS rating
FROM table_1 t
WHERE rating >= '4'
phpMyAdminには、エラーを示す - ' 句'同じ親クエリでサブクエリ値を使用できますか?
SELECT t.title, (
SELECT AVG(star_rating)
FROM reviews r
WHERE r.id = t.id) AS rating
FROM table_1 t
WHERE rating >= '4'
phpMyAdminには、エラーを示す - ' 句'同じ親クエリでサブクエリ値を使用できますか?
はこれを試すに>不明な列 '評価';
SELECT t.title,
(SELECT AVG(star_rating)
FROM reviews r
WHERE r.id = t.id) AS rating
FROM table_1 t
WHERE (SELECT AVG(star_rating)
FROM reviews r
WHERE r.id = t.id) >= 4