Database Layout I have a database that stores a bunch of info including the username, password and other details of different types of users (admin, customers etc.) in seperate tables of course.
And I want to search through the database using the username and return the name of the table that username belongs to. This will tell me what type of user they are. Something like this:
SELECT tableName FROM table1,table2,table3 WHERE username= thisValue
I don't have much experience with mysql so I don't even know where to begin.