| Author |
Topic |
|
Davide70
Starting Member
6 Posts |
Posted - 2012-02-16 : 11:44:28
|
| Hello,I have a select query which gives a column of values:...3903963951207Then I have a second query like this:select *from tablewhere id in (first query)I would expect all the rows corresponding to the IDs in the column above, instead I only get one (in this case, the last one).Any idea??Thank very much |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
Davide70
Starting Member
6 Posts |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
DonAtWork
Master Smack Fu Yak Hacker
2167 Posts |
Posted - 2012-02-16 : 13:18:42
|
Or even 0157? http://weblogs.sqlteam.com/jeffs/archive/2008/05/13/question-needed-not-answer.aspxHow to ask: http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspxFor ultra basic questions, follow these links.http://www.sql-tutorial.net/ http://www.firstsql.com/tutor.htm http://www.w3schools.com/sql/default.asp |
 |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
Davide70
Starting Member
6 Posts |
|
|
DonAtWork
Master Smack Fu Yak Hacker
2167 Posts |
Posted - 2012-02-17 : 08:00:43
|
Try SET ROWCOUNT 0 Then run your query.Otherwise, can you show us your ACTUAL query? Like in the HOW TO ASK link?http://weblogs.sqlteam.com/jeffs/archive/2008/05/13/question-needed-not-answer.aspxHow to ask: http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspxFor ultra basic questions, follow these links.http://www.sql-tutorial.net/ http://www.firstsql.com/tutor.htm http://www.w3schools.com/sql/default.asp |
 |
|
|
|