Hi Ronnie,
Please refer to the following discussion thread on the similar topic of IF EXISTS.
http://scn.sap.com/thread/3174024
You can check the existence of the table and then perform the SELECT statement. The alternative to SELECT "A", "B" could be SELECT 'A', 'B' from dummy;
Regards,
Ravi