Results 1 to 8 of 8

Thread: hhmm ROUND

  1. #1
    Join Date
    Dec 2008
    Posts
    5

    Unanswered: hhmm ROUND

    how can i round hhmm to nearest 30 minutes for ex 1140 round it to 1130 ,1210 to 1200 .

    Please let me know .

  2. #2
    Join Date
    Nov 2008
    Posts
    65
    Provided Answers: 1
    Stored procedure?

  3. #3
    Join Date
    Dec 2008
    Posts
    5
    i would like to use in the in the query.

  4. #4
    Join Date
    Nov 2008
    Posts
    65
    Provided Answers: 1
    stored procedure?
    select hhmmround(datetime_value) from ......

  5. #5
    Join Date
    Dec 2008
    Posts
    5
    I have tried it in the query
    Routine (hhmmround) can not be resolved.

  6. #6
    Join Date
    Nov 2008
    Posts
    65
    Provided Answers: 1
    You have to write your own hhmm_or_whatever_name procedure

  7. #7
    Join Date
    Apr 2003
    Location
    Phoenix, AZ
    Posts
    177
    Would need to be a function, not a stored procedure.
    Fred Prose

  8. #8
    Join Date
    Nov 2008
    Posts
    65
    Provided Answers: 1
    You're right Fred - function.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •