Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

selecting start date-end date in database

Status
Not open for further replies.

athos07

Programmer
Aug 1, 2002
19
AU
I have this database, where i have a field called BIDdate that has format "mm/dd/yyyy". i have a record of 100 of dates.

How can i get the first date record and the last date record, using SQL and with out any input of date range.
 
Hi,

If I understand you correctly, you want a query that can find the earliest date and the latest date in your table.

SELECT Min(table1.BIDdate) AS Startdate, Max(table1.BIDdate) AS Enddate
FROM table1;

Have a good one!
BK
 
BlackKnight

thank you very much :) it worked
both solution worked :)

i hope i can return the favor if your going to have ur problem :)

thank you again

athos
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top