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.
| 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 salonuidThe Yak Village Idiot |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2007-03-15 : 20:36:21
|
| Use the MIN function. SELECT MIN(SomeColumn)FROM SomeTableTara Kizerhttp://weblogs.sqlteam.com/tarad/ |
 |
|
|
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 |
 |
|
|
|
|
|