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 |
|
slafta
Starting Member
1 Post |
Posted - 2006-02-06 : 00:30:00
|
| subject: USING MIN(column) as a where conditionselect MIN(dtl_seq) from tablehere is the scenario:table name : tablelooks like this:__________________________trans_seq dtl_seq316372 3316372 6316372 7__________________________now i as trying to return anything above the min of column dtl_seqso run query to find min is this:select MIN(dtl_seq) from tablehow would you you run a select to return where dtl_seq > min(dtl_seq)any help appreciated.. |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2006-02-06 : 00:31:53
|
| [code]select *from tablewhere dtl_seq > (select min(dtl_seq) from table)[/code]----------------------------------'KH' |
 |
|
|
|
|
|