<p>
<br/></p><p>The attached is the result and code. Please check it.Thank you.</p><p>Code:</p><p> <br/>proc sql; <br/>create table stk.ret as <br/>select distinct <br/>date <br/>,market_return <br/>,avg(ret) as mixret <br/>from stk.return <br/>group by market_return <br/>order by date; <br/>quit; <br/></p>