Experts Exchange connects you with the people and services you need so you can get back to work.
At Springboard, we know how to get you a job in data science. With Springboard’s Data Science Career Track, you’ll master data science with a curriculum built by industry experts. You’ll work on real projects, and get 1-on-1 mentorship from a data scientist.
/****** Object: StoredProcedure [dbo].[Erlang_C2] Script Date: 11/09/2010 09:17:53 ******/
SET ANSI_NULLS ON
SET QUOTED_IDENTIFIER ON
-- Author: OKACS
-- Create date: 11/9/2010
-- Description: Finds the # agents necessary to reach a given service level
-- Loop Through Andy's Erlang C proc until the value meets the goal
-- and then display the resulting N
ALTER PROCEDURE [dbo].[Erlang_C2]
@A float, -- Amount of traffic expressed in Erlangs (call arrival rate/sec X average call time)
@P float -- Service Level Goal (Change of call going to hold)
DECLARE @S float -- Resultant Service Level
DECLARE @I int -- Number agents required
SET @S = 99
SET @I = 1
IF (@P < 1 or @P > 99)
-- Error, ServiceLevel Goal cant be less than 1% or greater than 99%
SET @I = 0
-- SELECT 'Looking for goal : ' + cast(@P as varchar)
WHILE ((@S >= 100-@P) and (@I < 35)) -- To a max of 35 so the function does not run forever
EXEC @S = [Erlang_C] @A, @I
SET @I = @I + 1;
-- SELECT 'TRYING ' + cast(@I as varchar) + ' agents for SL of '
-- SELECT @S as SL
SELECT @I as AgentsNeeded
-- Erlangs ServiceLevel
-- EXEC [Erlang_C2] 23.31, 99
Open in new window
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.
Premium members get this course for $151.20.
Premium members get this course for $159.20.
Premium members get this course for $62.50.
Premium members get this course for $148.75.
Premium members get this course for $174.99.