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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:51:13+00:00 2026-06-13T21:51:13+00:00

I have a column in sql that is an INT and I have to

  • 0

I have a column in sql that is an INT and I have to convert it to time.

I’ve tried

         CONVERT (VARCHAR, columnA / 600000)
   + ':'
   + RIGHT ('00' + CONVERT (VARCHAR, c_columnA % 60), 2)

but that’s not the result. Any idea’s how the data might be being casted?

Here a sample of the data:

INT |TIME
4680001|13:00
4680001|13:00
4596001|12:45
3846001|10:41
4320001|12:00
  • 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-13T21:51:14+00:00Added an answer on June 13, 2026 at 9:51 pm

    It’s already in the comments but I’ll post this as an answer:

    If you ignore the trailing 1, the value could be hundredths of a second since midnight –

    e.g. select dateadd(ms,384600 * 100,'19000101') gives 19000101 10:41

    or as a query:

    DECLARE @t TABLE
    (i INT, t VARCHAR(5))
    INSERT @t (i,t)
    VALUES (4680001,'13:00'),
    (4680001,'13:00'),
    (4596001,'12:45'),
    (3846001,'10:41'),
    (4320001,'12:00')
    
    SELECT DATEADD(s,i/100,'19000101'), t
    FROM @t
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a column in my SQL-2005 database that used to be a varchar(max)
I have a SQL Server 2000 database that will not display the column list
I have a SQL varchar column that has values like 100, 2000 and S5000.
I have a column that comes into my SQL database as a varchar(10) ,
I have a SQL script that populates a temp column and then drops the
In my SQL database I have a column that contains a fiscal year value.
I have a c# function that needs to write to a SQL image column.
I have an SQL Server 2008 database with a table that has a column
From my experience I have learn that using an surrogate INT data type column
I have a column TypeCode varchar(20) that has values like '1', '2', '3', 'FOO',

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.