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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T09:43:44+00:00 2026-06-04T09:43:44+00:00

Using SQL Server I want to make a date column for identity field…. Table1

  • 0

Using SQL Server

I want to make a date column for identity field….

Table1

Date_ (Identity Field)

20123
20124
20125
20125
....
....
18901

From the table1, max(date_) is 20125

so 20125 should be current date 05/23/2012 ‘mm/dd/yyyy

From the table1, i want to make a date from max(date_) field to min(date_) field

Expected Output

Date_  Correct Date

20123 05/21/2012 
20124 05/22/2012
20125 05/23/2012
20125 05/23/2012
....  .....
....  .....
18901 02/18/2004  'Approximately

How to make a query for this

Need SQL Query 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-04T09:43:45+00:00Added an answer on June 4, 2026 at 9:43 am

    I fail to understand why you need this and the value for 18901 does not seem correct. I would also be interested in the significance of the date 1957-04-17.

    select dateadd(day, Date_, '19570417')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using SQL Server 2005 I want to hide the date from table1 where table1.id
Using SQL Server 2005 Table1 Date 20090501 20090502 20090503 20090504 20090505 ..., I want
Using sql server 2000 Date Column datatype is varchar Table1 ID Date 01 20100122
Using SQL Server 2000 I want to compare the table2.date between table1.from, table1.todate, if
Using SQL Server 2005 I want to filter the column where column value not
I'm using SQL Server and I want to use identity constraint in it I
Using VB.NET and SQL Server 2005 I want to generate a date according to
I am using SQL Server 2008 express edition but I want to make my
Using SQL Server 2000 and VB6 Table1 ID Date 001 20090801 001 20090802 …
I have an Asp.net website using SQL Server. I want to make a website

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.