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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:04:56+00:00 2026-06-18T00:04:56+00:00

I have table with column with time Datatype.I want to compare the time in

  • 0

I have table with column with time Datatype.I want to compare the time in SQL.The main problem is when i compare any time with ’00:00:00’/’00:10:00′.

For e.g. select timings from train where trn_time > ’19:00:00′.
then in output i want ’00:00:00′ also wic I am not getting.
And I dont want to use ‘Datetime’ data type.
Please help.

  • 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-18T00:04:57+00:00Added an answer on June 18, 2026 at 12:04 am

    i created a table in mysql with name ‘table11’

    CREATE TABLE `table11` (
        `id` INT(10) NULL DEFAULT NULL,
        `time_col` TIME NULL DEFAULT NULL
    )
    

    and inserted data as follows enter image description here

    and when i used following query

    select  * from table11 tbl where tbl.time_col< '19:00:00'
    

    i got result

    enter image description here

    if you use tbl.time_col< ’19:00:00′ then only you will get ’00:00:00′ in the output.
    i think in your case its better to use ‘Datetime’ datatype

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

Sidebar

Related Questions

I have dateTimeAuth column in sql table of datatype datetime and its default value
I have a database table with a decimal(25) datatype. The data from this column
I have table with date/time column and person column. Each person has multiple records
I have a table with a column event_time . How can I select two
I have a table with a column called time, HH:MM:SS. How can I do
How to filter DataView/DataTable by time? I have a table with datetime column inside
How can I have a column in a table which records the time which
I have a table and I want to update the Duration column which of
I have to use a column with a datatype of TEXT in SQL Server
I have the following column date in a SQL Server database. The datatype is

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.