Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

relatively simple mode, median, mean

By Oblio Leitch,

Here's a sample script to help you get some generic mode, median, and mean statistics for something. In my example, I'm getting the number of days something takes to start and stop some task. The idea is that I'd have a fairly short list of jobs, and record would record the job id, and start/stop dates. You should be able to extrapolate the mechanism to report on other things.

Total article views: 910 | Views in the last 30 days: 2
 
Tags
data warehousing    
miscellaneous    
t-sql    
 
Contribute