In my application, I want to create a "universal search" box that will allow the users to perform a general search on any of the 'informational' data within the database. The system happens to be an account management system, so ideally they'd be able to do searches for e-mail addresses, usernames, ID's, etc.
I've been searching around the web for a solution but I haven't come to a conclusion yet so I figured I'd ask the question on SO.
What's the best way to perform a 'search' query on the database and return potential results from multiple tables?
My initial thought was to perform a SELECT query on each individual table using a wildcard for each 'searchable' column. Would this be a correct approach?