This is a list of possible future changes in design and implementation of the CML/LitCrit application:
CREATE procedure lc_top10_by_jobtitle(@title varchar(64)) AS
set nocount on
select c.bib#,b.title,avg(convert(decimal,rating)) avg_rating,count(*) weight
into #ctemp from critique c join borrower b on c.borrower#=b.borrower#
where b.title=@title and c.isapproved=1 group by c.bib#,b.title
select TOP 10 c.bib#,c.avg_rating,t.title from #ctemp c join title t on c.bib#=t.bib#
order by c.avg_rating DESC,c.weight DESC