Ver originalSET @cVar = "28427733" ; SELECT telefono FROM pueblo1 WHERE telefono=@cVar UNION (SELECT telefono FROM pueblo2 WHERE telefono=@cVar) UNION (SELECT telefono FROM pueblo3 WHERE telefono=@cVar) ;