How to fetch the rate of the product in child table in custom scripts?


Please help me with this–
How to fetch the rate of the product in child table in custom scripts?