Solved

SQL Server 2008 DistNorm Excel equivalent

Posted on 2013-12-15
2
399 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 29

Accepted Solution

by:
Rich Weissler earned 500 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
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…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

706 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now