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 |
|
laailalalaa
Yak Posting Veteran
57 Posts |
Posted - 2010-03-07 : 18:50:07
|
| say i take out a min value (3) and a max value (8) in a select from a table. and for each value between 3 and 8 i want to display a row with some data (result set with 6 rows). how do i do this?thanks |
|
|
namman
Constraint Violating Yak Guru
285 Posts |
Posted - 2010-03-07 : 20:03:46
|
| Could you provide your sample table (with data) and desired result |
 |
|
|
vaibhavktiwari83
Aged Yak Warrior
843 Posts |
Posted - 2010-03-08 : 01:46:55
|
| This is the solution but in what way you are going to pass the min value and max valueSELECT Number FROM master..spt_values WHERE Number > 3 and Number < 8 AND Type = 'P'Vabhav T |
 |
|
|
|
|
|