hello please how can correct my query?
im using oracle 10g
i want to select "rating" from RATINGAVG table,
and i have foreign key "documentId" in RATINGAVG too.
SELECT
d.DOCUMENT_ID,
(select DOCUMENTID, Round(avg(rating))
from RATINGAVG
where DOCUMENTID=d.DOCUMENT_ID
)
from Documents d
when i run this query i got :