-
Find the max and min Date
I'm doing a query using SQL Server. How can I get the max and min date from a database? I can't find any function related to it. Can you help me please ....
Thanks in advance
Andy
-
Find the max and min Date (reply)
SELECT TOP 1
<date>
ORDER BY <date> DESC
SELECT TOP 1
<date>
ORDER BY <date> ASC
------------
Andy Wong at 2/1/01 10:10:28 PM
I'm doing a query using SQL Server. How can I get the max and min date from a database? I can't find any function related to it. Can you help me please ....
Thanks in advance
Andy
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|