Forum Replies Created

Viewing 15 posts - 2,956 through 2,970 (of 5,109 total)

  • RE: SQl to calculate average time for call centre agents

    Zalouncha - Friday, October 6, 2017 9:07 AM

    Hi Thom A,

    my data look slik ebelow:

    CALLSTATID,CLIENTNO,CALLLOGID,CPGNO,CALLSTATE,LOCALISEDCALLSTATE,STATETIMEAGT,USEDBYAGENT,LOGAGENTNO,CALLLOGREF,COMPLETECODE,CTI_USER
    1,1,10,5,Talking,Call time,08:27:38,agent1,123,NULL,NULL,70002
    2,1,10,5,Hold,Hold,08:30:36,agent1,123,NULL,NULL,70002
    3,1,10,5,Talking,Call time,08:34:17,agent1,123,NULL,NULL,70002
    4,1,10,5,Hold,Hold,08:34:18,agent1,123,NULL,NULL,70002
    5,1,10,5,Talking,Call time,08:34:52,agent1,123,NULL,NULL,70002
    6,1,10,5,WrapUp,Wrap Time,08:36:19,agent1,123,NULL,NULL,70

    Thanks. it would be great,...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Execution time Improvement - Knowing the problem, but not the solution

    ChrisM@Work - Friday, October 6, 2017 9:02 AM

    Have you got an actual plan for the faster query, Thom?

    Sure. It's considerably different;...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: SQl to calculate average time for call centre agents

    Without seeing your sample data, from your description I understand that a new row is inserted each time a status changes (with a duration? I've guessed yes). I also assume,...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: SQl to calculate average time for call centre agents

    Zalouncha - Friday, October 6, 2017 8:32 AM

    I need to create an sql which will generate a report on average time for...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: SQl to calculate average time for call centre agents

    Like Phil said, we have a requirement here. Are you actually asking how to work out an average? If so, which type of Average: Mode, Mean, Median? Let's assume you...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Execution time Improvement - Knowing the problem, but not the solution

    Know this has gone quiet, and I have a solution,but we're testing queries on 2017 now as we're planning to upgrade in the new year. Surprisingly, the new Cardinality Estimator...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Any major advantage to using SSDT over BIDS 2008?

    SSDT cannot deploy to SQL Server 2008. If you've done a one way upgrade on your project, and not kept a backup, you have problem, as you won't be able...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Any major advantage to using SSDT over BIDS 2008?

    If you're connecting to SQL Server 2008 then SSDT is not compatible. You have to use BIDS with SSRS/SSIS/etc 2008. SSDT 2017/2016 is compatible with SQL Server 2012 onwards. Conversely...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Processing multiple files from different directories

    A For Each Loop would normally be used if you have multiple files in one directory or set of sub directories. This means that the Loop can iteratively go through...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: from today to last one month data

    Also, I feel there is no need to check that "today", and "30 days ago" is greater than 2011-09-18. Unless you invent a time machine and go back and run...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: SSIS : Converting from string to be able to store in my DB decimal (28,12)

    river1 - Thursday, October 5, 2017 6:18 AM

    I think I am not doing the things right in terms of replacement of the...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: SSIS : "31,123,322.23" inside excel csv file

    You need to set your Text Qualifier in your Flat File Connection as a double quote (").

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: SSIS : Converting from string to be able to store in my DB decimal (28,12)

    I'm hazarding a bit of a guess here, but I'm I imagine that SSIS doesn't like the commas. As it is importing the column as a string, and (true) numbers...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Current month to yesterday's date

    craig.jenkins - Thursday, October 5, 2017 3:31 AM

    great spot thankyou Thom, it should be IF GETDATE() >='2018-01-02' AND GETDATE() <'2018-01-03'

    Ok, but my concern...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Current month to yesterday's date

    I'm not sure that is correct. For example, one item I noticed is:
    IF GETDATE() >='2018-01-02' AND GETDATE() <'2017-01-03'
    How can the current date be both greater or equal...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

Viewing 15 posts - 2,956 through 2,970 (of 5,109 total)