I have a Studies table in which I perform a SELECT.
Then I need to do another SELECT on the returned recordset. I tried this (simplified for clarity):
SELECT * FROM Studies WHERE Id = '2' OR Id = '3' OR Id = '7';
SELECT * FROM Studies WHERE (Name = 'Test') AND Id IN (SELECT * FROM Studies WHERE Id = '2' OR Id = '3' OR Id = '7');
But I keep getting the following SQL error:
Only one result allowed for SELECT, which is part of the expression
Where am I mistaken? If this is not obvious from my code, I am relatively new to database programming.
thanks
Garry
source share