We have more than 40 tables under a database called "Coredata" and tables named from 't001', 't002' to 't040'. All table has one common field - 'email' so building a search option using 'email' as a key index, so following is my SQL query to search between few tables - please suggest an easy approach to run the query and search/fetch data across all 40 tables.
Following query pops-up #1052 - Column 'email' in where clause is ambiguous
SELECT * from t001, t002 WHERE email ="emailid@gmail.com";