?
Solved

SQL Server 2008 DistNorm Excel equivalent

Posted on 2013-12-15
2
Medium Priority
?
434 Views
Last Modified: 2013-12-16
Hi there,

I have normalized data in a certain table, say:

Material ID     UserID     NormalizScore
1                          1              -2.9487
1                          2              -1.4771
etc

If in Excel, I could use  the function DIST.NORM, say  DIST.NORM(-1.4771;0;1;TRUE) , applied to the value -1.4771, to obtain (aprox.) 0.0698 meaning  there is 7% of the population (expected to be) below this normalized score.

Question: is there (what is) the SQL equivalent, please?

Thanks,
fskilnik.
0
Comment
Question by:fskilnik
2 Comments
 
LVL 30

Accepted Solution

by:
Rich Weissler earned 2000 total points
ID: 39721215
TSQL in the MS SQL database engine doesn't include an equivalent function, and it isn't really intended as a statistical analysis package.  If the requirements are relatively modest and/or ad hoc, I think the best option would be to use SQL as the data store, with queries from Excel to retrieve data, and perform the analysis in Excel.  If you are willing to invest a fair amount of time, you can start doing data mining within SQL Server Analysis Server.
0
 

Author Comment

by:fskilnik
ID: 39721254
Hi, Razmus.

Thanks for the info and for the suggestion/link!

Through Google (what else?) I found exactly what I wanted... for the interested readers (and for myself in the future) here it is:

http://formaldev.blogspot.com.au/2012/09/T-SQL-NORMDIST-3.html

Regards,
fskilnik.
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
This shares a stored procedure to retrieve permissions for a given user on the current database or across all databases on a server.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…

755 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question