I\'m trying to achieve the following in SQL Server 2005:
SELECT (IF EITHER EXISTS) usr.username, pro.email FROM table1 AS usr, table2 AS pro WHERE usr.username = \'ex
i think you should write Boolean logic for this query....
refer this post may be it helps you. Boolean logic