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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T04:11:10+00:00 2026-06-15T04:11:10+00:00

Please give me right answer for this question This is the table time_names and

  • 0

Please give me right answer for this question

This is the table time_names and its structure:

time_id    time_name
-------    ----------
  1        5:00 AM
  2        5:15 AM
  3        5:30 AM
  4        5:45 AM
  5        6:00 AM
  6        6:15 AM
 ...       .....
 ...       .....
 70        10:15 PM
 71        10:30 PM
 72        10:45 PM
 73        11:00 PM
 74        11:15 PM
 75        11:30 PM
 76        11:45 PM

time_id is INT, time_name is varchar datatype.

Here I want show only 8:30 AM to 11:00 PM between all data

Please give me any query

  • 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-15T04:11:12+00:00Added an answer on June 15, 2026 at 4:11 am

    Since you’re on SQL Server 2008, you can simply cast the time_name to a TIME datatype:

    SELECT time_id, time_name
    FROM dbo.time_names
    WHERE CAST(time_name AS TIME) BETWEEN '08:30 AM' AND '11:00 PM' 
    

    But seriously: if you store a time value – WHY aren’t you using the appropriate TIME datatype for it??

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

Sidebar

Related Questions

Please give me some examples of jump table usage. I have seen this example
The answer to this question will probably give me a doh! moment, but where
Please give me some tips for this case. I have an iPhone APP which
Anybody please give some useful links on this topic.i need to create a content
I saw someone using this in one answer: void methodA(const int*& var); I couldn't
I just want to find an answer to this question Let A be a
Please give me a real time example for singleton pattern . Different threads accessing
Please give me an example for MVC pattern used in Java SWING package ?
Please give me help regarding the random error comes within my web application using
Can you please give me Resources(Books, Tutorials, Other useful links ) to learn QT/Embedded

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.