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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:52:40+00:00 2026-06-09T18:52:40+00:00

My table is id username calledtime 1 user1 01-02-2012 10:04:02 2 user2 01-02-2012 10:12:02

  • 0

My table is

    id  username calledtime
1 user1 01-02-2012 10:04:02 2 user2 01-02-2012 10:12:02 3 user1 01-02-2012 10:15:22 5 user4 01-02-2012 11:20:02 6 user6 01-02-2012 11:23:02 7 user8 01-02-2012 11:34:15 8 user7 01-02-2012 11:55:02 9 user8 01-02-2012 15:23:02 10 user6 01-02-2012 16:03:02 11 user9 01-02-2012 19:43:02

Here the peak time is 10 – 12. because most users are called in between in 10 and 12.
How do I find out this ?

Can anyone help me out to get this

thanks

  • 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-09T18:52:41+00:00Added an answer on June 9, 2026 at 6:52 pm

    I think you just want a group by on the hour:

    select extract(hour from calledtime) as hr,
           count(*)
    from t
    group by extract(hour from calledtime)
    order by 1
    

    To get the peak for an hour, you would need to find the max for this. The easiest way is:

    select extract(hour from calledtime) as hr,
           count(*)
    from t
    group by extract(hour from calledtime)
    order by count(*) desc
    limit 1
    

    You may also want date information as well as the hour; just include that in the select and group by.

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

Sidebar

Related Questions

Hi I need small query here are my tables user table userid username user001
I have the following database design: Employee Table: Username, Name, DivisionCode Division Table: SapCode,
I have the following database design: Employee Table: Username, Name Quiz Table: QuizID, Title,
I have Two tables. 1.Users table (Username , Name) 2.Picture table( ID , Username
I have a Table: | USERNAME | FORNAME | SURNAME | TELNUMBER | ZIPCODE
I've got a problem in an Oracle function execution. I've a table loginfo(username,password,type) and
lets say that my table looks like: username userid a1 1 a1 1 a1
Say I have a simple table that contains username, firstname, lastname. How do I
I have two tables, a user table and a application table: User id username
users table +-----+-----------+ | id | username | +-----+-----------+ | 1 | tom |

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.