Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 abt min and max functions

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-06-16 : 08:06:44
ghana writes "how can i get the max and min values from an attribute in a table? here i want both max value and min value?"

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-06-16 : 08:47:50
select min(col) as Minimum , max(col) as Maximum from yourTable


Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -