Skip to Main Content
IBM Power Ideas Portal


This portal is to open public enhancement requests against IBM Power Systems products, including IBM i. To view all of your ideas submitted to IBM, create and manage groups of Ideas, or create an idea explicitly set to be either visible by all (public) or visible only to you and IBM (private), use the IBM Unified Ideas Portal (https://ideas.ibm.com).


Shape the future of IBM!

We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:

Search existing ideas

Start by searching and reviewing ideas and requests to enhance a product or service. Take a look at ideas others have posted, and add a comment, vote, or subscribe to updates on them if they matter to you. If you can't find what you are looking for,

Post your ideas
  1. Post an idea.

  2. Get feedback from the IBM team and other customers to refine your idea.

  3. Follow the idea through the IBM Ideas process.


Specific links you will want to bookmark for future use

Welcome to the IBM Ideas Portal (https://www.ibm.com/ideas) - Use this site to find out additional information and details about the IBM Ideas process and statuses.

IBM Unified Ideas Portal (https://ideas.ibm.com) - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM.

ideasibm@us.ibm.com - Use this email to suggest enhancements to the Ideas process or request help from IBM for submitting your Ideas.

Status Delivered
Workspace IBM i
Categories Db2 Web Query
Created by Guest
Created on Apr 12, 2017

WebQuery SUM for duration of time

We have discussed in the forum how to make a sum for a duration of time. We heard that this is not possible in webquery now.
A lot of people would need this functionality.
So pleas provide the possibility to make a sum over a duration of time.
you can read the entry in the forum as well.
https://www.ibm.com/developerworks/community/forums/html/topic?id=17efefd3-116d-4c74-88ee-ee9d81c8013d


Use Case:

please provide a sum over a duration of time in webquery


Idea priority Medium
  • Guest
    Reply
    |
    Oct 11, 2021

    The format IxxDHMS is now available in DEFINE and COMPUTE fields. Please see the detailed documentation in the 2.3.0 New Features Guide under "Duration of Time" at http://ibm.biz/db2wq-newfeats.

  • Guest
    Reply
    |
    Jun 16, 2021

    Let me know if you need more information.
    My post from 20 Jun 2017 contains examples (see below)
    or ask GregTBF (see his post from 13 Apr 2017) - he understand our needs.

  • Guest
    Reply
    |
    Jun 15, 2021

    IBM will use this request as input to planning but no commitment is made or implied. This request will be updated in the future if IBM implements it. IBM will use votes and comments from others in the community to help prioritize this request.

  • Guest
    Reply
    |
    Jul 30, 2020

    Summing up the number of seconds and converting the total seconds to hh:mm:ss is understandable.

    Outstanding questions:

  • Guest
    Reply
    |
    Jun 23, 2019

    ??

  • Guest
    Reply
    |
    Dec 18, 2018

    Hi, anything new about this request?
    no feedback since 18 months.

  • Guest
    Reply
    |
    Jun 20, 2017

    Hi,
    I'll try to answer your questions.

    Summing up the number of seconds and converting the total seconds to hh:mm:ss is understandable?
    Why understandable ? But this was only an idea.
    e.g. your daily working hours. make a report of your daily working hours by month. make a sum of your working hours to get the monthly working hours in the summary line.
    the idea was to convert the hours and minutes to seconds (in background) sum it up and convert the summary line to the choosen format.

    1. e.g. add 14:25:33 and 18:22:37 you should get 32:48:10 (depending of the choosen format it could also be 1d 8:48:10)
    2. I only expect that the examples above will work. But I agree with greg, the best solution would be a new data type "duration"

    regards

  • Guest
    Reply
    |
    Jun 19, 2017

    Thank you for the request. I have read the forum entries but would like to get more details on the expected output.
    Summing up the number of seconds and converting the total seconds to hh:mm:ss is understandable. But a couple questions:

    1. What happens when the total exceeds 24 hours? An error?
    2. For such a function, what input would you expect it to take? Just an integer (seconds)? Two timestamps (start/stop)?

  • Guest
    Reply
    |
    Apr 13, 2017

    At a minimum - create a function that converts seconds or minutes to hhhh:mm:ss

  • Guest
    Reply
    |
    Apr 13, 2017

    This is a relatively common requirement. To do this right, you would almost need to create a "duration" data type.