Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6349311
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:35:27+00:00 2026-05-24T21:35:27+00:00

I have a data entry form that anybody must fill up 3 forms. I

  • 0

I have a data entry form that anybody must fill up 3 forms. I log the entry time for form 1, form 2, form 3. Now I want to know what is the average of time to fill up the forms for all people. How can I do that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T21:35:30+00:00Added an answer on May 24, 2026 at 9:35 pm

    100% guesswork based on extremely vague requirements.

    DECLARE @x TABLE
    (
        UserID    INT,
        FormID    TINYINT,
        StartTime DATETIME,
        EndTime   DATETIME
    );
    
    INSERT @x VALUES
    
    -- a user who has completed all three forms
        (1,1,'20110820 04:25:01','20110820 04:33:07'),
        (1,2,'20110820 04:34:05','20110820 04:38:33'),
        (1,3,'20110820 04:39:02','20110820 04:47:55'),
    
    -- a user who has completed two forms
        (2,1,'20110820 04:25:54','20110820 04:29:32'),
        (2,2,'20110820 04:30:55','20110820 04:34:27'),
    
    -- the same user who has completed 1.5 forms
        (2,1,'20110820 04:35:23','20110820 04:37:15'),
        (2,2,'20110820 04:38:34',NULL),
    
    -- the same user who has completed all three forms
        (2,1,'20110820 04:45:12','20110820 04:49:07'),
        (2,2,'20110820 04:50:26','20110820 04:55:31'),
        (2,3,'20110820 04:56:41','20110820 05:01:23'),
    
    -- a slow user who has completed all three forms
        (3,1,'20110820 05:25:04','20110820 05:43:07'),
        (3,2,'20110820 05:44:09','20110820 05:55:21'),
        (3,3,'20110820 05:59:41','20110820 06:24:23');
    

    Here are some typical aggregations that I’m guessing might hit the one you’re looking for:

    SELECT -- avg by form regardless of user
        FormID, 
        completed_forms = COUNT(*), 
        average = AVG(DATEDIFF(SECOND, StartTime, EndTime))
    FROM @x GROUP BY FormID;
    
    SELECT -- avg by form and user
        UserID,
        FormID, 
        completed_forms = COUNT(*),
        [seconds] = AVG(DATEDIFF(SECOND, StartTime, EndTime))
    FROM @x GROUP BY UserID, FormID;
    
    SELECT -- avg by user regardless of form
        UserID,
        completed_forms = COUNT(*),
        [seconds] = AVG(DATEDIFF(SECOND, StartTime, EndTime))
    FROM @x GROUP BY UserID;
    
    -- if you want hh:mm:ss format and the form never takes > 24 hours to complete,
    -- you can do this kind of thing to any of the above queries:
    
    ;WITH x(FormID, completed_forms, average) AS
    (
        SELECT
            FormID,
            COUNT(*),
            AVG(DATEDIFF(SECOND, StartTime, EndTime))
        FROM @x GROUP BY FormID
    )
    SELECT 
        FormID, 
        completed_forms,
        [hh:mm:ss] = CONVERT(CHAR(8), (CONVERT(TIME(0), DATEADD(SECOND, average, '19000101'))))
    FROM x;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a number of very old data entry forms that were made in
I have a form that is used for data entry, and on one form
I have a data entry form that has remote validation set up to check
I have a data entry form in a HTML5 application that users will be
I have a WinForms data entry form that will have upwards of 1500 questions.
I have a simple form that dynamically presents a data entry form, and the
Folks, I have an MVC3 data entry form scenario that involves asking the user
I have a data entry form that had several comboboxes on it. Each of
I have a WPF MVVM app that contains a data entry form with several
I'm developing an ASP.NET form for data-entry. Users have to select a client from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.