mysql - Operand should contain 1 column error -
this question has answer here:
i have following query
select * users id not in ( select user_id `counter` date_sub( curdate( ) , interval 14 day ) <= created ) , id in ( select user_id coupon_used ) , id in ( select user_id accounts ) i need put clause in coupon_used table if user id in coupon useed table code ='xyz'. did
id in ( select user_id, code coupon_used code ='xyz' ) but show me error that:
operand should contain 1 column.
a join better, minimum changes you've written can use fact subquery doesn't need column in clause in select. i.e. instead of
id in ( select user_id, code coupon_used code ='xyz' ) you can use
id in ( select user_id coupon_used code ='xyz' )
Comments
Post a Comment