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
 General SQL Server Forums
 New to SQL Server Programming
 Find the minimum value

Author  Topic 

jgrant
Yak Posting Veteran

69 Posts

Posted - 2007-03-15 : 20:23:38
How can I find the minimum value of column?

Select salonuid, avg(LPPA),[Find the minimum](LPPA) from kpi.dbo.employee_data group by salonuid

The Yak Village Idiot

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2007-03-15 : 20:36:21
Use the MIN function.

SELECT MIN(SomeColumn)
FROM SomeTable

Tara Kizer
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

jgrant
Yak Posting Veteran

69 Posts

Posted - 2007-03-15 : 21:00:11
okay thanks, Im not sure what happened the first time that I used it. I got some error and thought that maybe the min function wasnt supported by sql. (also, I thought the min function would be colored pink like the avg and sum functions but it was blue)

The Yak Village Idiot
Go to Top of Page
   

- Advertisement -