I am running the following query:
if (select IntExternalAccountID from ExternalAccount) = (select IntExternalAccountID from InternalAccount)
select * from InternalAccount
where AccountPurpose=2
and getting the following error
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
What I am attempting is if the values in ColumnA from Table1 = values in ColumnA from Table2
then return those results only when the AccountPurpose condition is met.
Please bear in mind I am a complete rookie in sql so try to keep it simple
I appreciate all the help I can get.