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 |
|
manu
Starting Member
41 Posts |
Posted - 2005-11-04 : 05:41:41
|
| hi,i have a problem.suppose i have a database having 3 fieldsename evalue etextmanu 25 mmanu 24 n i want to get min evalue record and compare it with some other fieldmy query should be like thisselect etext from database where min (evalue)> 20how we can use minimun value in where condition. Munish Gupta |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2005-11-04 : 05:56:48
|
| You need to use Group by and Havingselect etext from database group by etext having min (evalue)> 20Otherwise post some sample data and the result you wantMadhivananFailing to plan is Planning to fail |
 |
|
|
manu
Starting Member
41 Posts |
Posted - 2005-11-04 : 08:07:29
|
| thanks sir,it is ok now |
 |
|
|
|
|
|