?
Solved

SQL Server 2008 DistNorm Excel equivalent

Posted on 2013-12-15
2
Medium Priority
?
424 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Hi all, It is important and often overlooked to understand “Database properties”. Often we see questions about "log files" or "where is the database" and one of the easiest ways to get general information about your database is to use “Database p…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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 tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

765 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