I have a merged table from several unions and i want to know from which of those tables the results were taken, is that possible?
example...
select name from users where name like '%alex%' union select name from admins where name like '%alex%';
Would return lets say two rows, Alexander and Alexandra. Alexander is an admin and Alexandra is a user. How can i tell them apart?