Hi try this one
dl_books.DataSource = (from st in obj.Book_details
join d in obj.Rating_tables on st.Book_Id equals d.Book_id into pl
where st.Category == "Health "
orderby st.Book_Id descending
select new { st.Book_Id , rat = pl.Average(c=>(decimal)c.Rating) ,st.Price ,st.Name ,st.Image, }).Take(6);
dl_books.DataBind();