469,360 Members | 2,281 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,360 developers. It's quick & easy.

Subquery returned more than 1 value. This is not permitted when the subquery follows

3
hi, i execute a store procedure got
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.' message

is there any one help with these codes below
.......
SET @strSQL = (@strSQL + ' AND p.PropertyID NOT IN ( ' + (SELECT DISTINCT a.propertyID
FROM propertyAvailability a
WHERE a.date >= CONVERT(varchar(10), getDate(), 103)
AND a.date <= CONVERT(varchar(10), getDate(), 103) )+')')
..........
May 14 '07 #1
0 1132

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by leegold2 | last post: by
2 posts views Thread by reap76 | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.