What is the difference between tables and views in databases? When to use tables and when to use views? What are the advantages of using a view?