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 8709671
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T04:25:19+00:00 2026-06-13T04:25:19+00:00

I have an issue finding the longest responce time and the shortest responce time.

  • 0

I have an issue finding the longest responce time and the shortest responce time.

Three tables:

T1.RESPONCE
resp_id (bigint)
resp_text (text)
resp_created_date (datetime)
resp_closed_date (datetime)

T2.RESP_UPDATE_RELATION
resp_id (bigint)
update_id (bigint)

T3.UPDATES
update_id (bigint)
update_text (text)
update_created_date (datetime)
update_closed_date (datetime)

T2.RESP_UPDATE_RELATION is created for multiple updates per responce

I would like to locate – for each responce – the longest and the fastest update time.

Any clever mysql for that?
Or do I need to include PHP code for this?

———————————– EDIT ——————————–

woke up just now.. and thougth. I have been trying this for a week now, and it seems that I am doing it right. The results are confusing me. So maybe I am not doing it wrongly – but asking the wrong question.

So, above request is slightly wrong!

my real request is:

I would like the result from the last 30 days of
the fastest opening update (update_created_date)
the slowest opening update (update_created_date)
the fastest closing update (update_closed_date)
the slowest closing update (update_closed_date)
  • 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-06-13T04:25:20+00:00Added an answer on June 13, 2026 at 4:25 am

    Join all three tables on their foreign keys and group by resp_id. You can now select the first and the last update using the MIN and MAX aggregation functions on update_created_date / update_closed_date. If you want the query to produce the time difference, you can use the TIMEDIFF or TIMESTAMPDIFF functions on top.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an issue with finding a specific text within a string and then
We have a device that support SAE J1939 interface and having issue with finding
I'm having an issue with finding and deleting duplicate records, I have a table
We have a Hibernate-based (33.) web application and are finding an issue related to
I have the following XML sample: <finding> <title>Found something</title> <heading>Severity:</heading> <text>Really low.</text> <heading>URL:</heading> <text>https://www.something.com:443</text>
I'm having an issue with finding some data I have put into my multidimensional
The issue: I have text fields that are extremely long, and I'm truncating them
I have a issue finding the center of the screen. I have jQuery code:
I am having a issue finding a fast way of joining the tables looking
I've been on a problem for hours without finding any issue... I have a

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.