I am trying to select values from one table which meet the criteria of a range of values found in another table. Perhaps displaying the SQL would provide a better illustration...
Below is the SQL statement that I currently have that returns an error: "Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression."
select * from History where Upper(Filename) like
(select FileNameMask from FileInfo where EmailAddress = 'jdoe@aol.com')
In the above SQL statement, FileNameMask contains a wild-card string, such as "%.MAK.%". The problem is in handling the sub-select which returns multiple rows.
Any help getting this to work would be greatly appreciated!!!
Mark
Below is the SQL statement that I currently have that returns an error: "Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression."
select * from History where Upper(Filename) like
(select FileNameMask from FileInfo where EmailAddress = 'jdoe@aol.com')
In the above SQL statement, FileNameMask contains a wild-card string, such as "%.MAK.%". The problem is in handling the sub-select which returns multiple rows.
Any help getting this to work would be greatly appreciated!!!
Mark