the mysql certification guide suggests that views can be used for:
- creating a summary that may involve calculations
- selecting a set of rows with a WHERE clause, hide irrelevant information
- result of a join or union
- allow for changes made to base table via a view that preserve the schema of original table to accommodate other applications
And maybe you're right that it doesn't work since mysql views are not good friends with indexing. But still. Is there anything to search for in the shops table?
i learn that views dont work well with indexing so, will it be a big performance hit, for the convenience it may provide?