Select count(*) from Merchant where Email in
(Select SentEmail from MerchantInvitations where MerchantID = '16092') AND
CreatedOn> (Select TimeSent from MerchantInvitations where MerchantID = '16092')
I want the count for Merchants satisfying whose email is in SentEmail column in MerchantInvitations
and CreatedOn > Timesent in MerchantInvitations. But i get an error that “Subquery returned more than 1 value. This is permitted when the subquery
follows =,!=,<,<=, etc or when the subquery is used as an expression” Help me out please!! Thanks in advance!
Looks like you sub-query is returning more than one
TimeSentwhich is compared withCreatedOn. To fix this add anALLspecifier as: