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 |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2001-02-18 : 21:36:47
|
Craig writes "Dear Guru:
I am trying to do this:
SELECT ID FROM YRQ WHERE name IN (SELECT YRQlist FROM Publish)
The problem is, (I think) it interprets the results of the subquery, ---) 'A012','A015' (--- as a string, rather than a list.
Here are the two tables:
"YRQ" table =========== ID Name 1 A012 2 A013 3 A014 4 A015 ... etc
"Publish" table --- just one record =================================== startDate endDate YRQList 1/1/2001 6/1/2001 'A012','A015'
I'm using SQL Server 7.0. Any help would be greatly appreciated. Thanks!
Craig" |
|
|
|
|
|