What statistical functions come native to C# and T-SQL?
I'm a fledgling DBA dealing with some medical data.  While I've not yet gotten to the point of needing top-tier statistical methods, I will soon.  I plan to put several databases online and searchable for whatever the user wants.  My question is, besides average, standard deviation, etc. does T SQL have any other statistical functions?  And for C#?  Are free libraries for things such as this readily available, or would I have to make it?  Thanks!
What statistical functions come native to C# and T-SQL?
===

I'm a fledgling DBA dealing with some medical data.  While I've not yet gotten to the point of needing top-tier statistical methods, I will soon.  I plan to put several databases online and searchable for whatever the user wants.  My question is, besides average, standard deviation, etc. does T SQL have any other statistical functions?  And for C#?  Are free libraries for things such as this readily available, or would I have to make it?  Thanks!