Hi all,
I have a statement:
SELECT aff_code, aff_name, pw FROM affiliates WHERE aff_code = 'snow'
UNION ALL
SELECT aff_code, aff_name, pw FROM associates WHERE aff_code = 'snow'
But I want to know based on my query which table each row came from(associates or affiliates). Can I create a dynamic column or something? Thanks!
I have a statement:
SELECT aff_code, aff_name, pw FROM affiliates WHERE aff_code = 'snow'
UNION ALL
SELECT aff_code, aff_name, pw FROM associates WHERE aff_code = 'snow'
But I want to know based on my query which table each row came from(associates or affiliates). Can I create a dynamic column or something? Thanks!