title: Need SQL Server Query to solve 3rd Order Polynomial Regression
body: <p>Can anyone help with some SQL query code to provide estimates of the co-efficients for a 3rd order Polynomial regression?</p>
  
  <p>Please assume that I have a table of X and Y data values and want to estimate a, b and c in:</p>
  
  <pre><code>Y(X) = aX + bX^2 + cX^3 + E 
  </code></pre>