Link to home
Start Free TrialLog in
Avatar of rgb192
rgb192Flag for United States of America

asked on

if value is already in the second table do not select

profile_id is varchar

SELECT profile_id
            FROM a_messages
            WHERE

where profile_id is NOT in profiles
so profiles.profile_id does not exist

because if the value is already profiles table, there is no need to use it
ASKER CERTIFIED SOLUTION
Avatar of vr6r
vr6r

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rgb192

ASKER

thank you