Sql Query to Create View

SQL View is an imaginary view table based on information retrieved using a select query.

Suppose a user wants to create an imaginary result set that includes records from one or more tables. Then he can create a view using a select query included. And access just using a simple small query.

Enter - Select * from table_name;
SQL Query
CREATE VIEW usersalary_view AS SELECT * FROM employees as e INNER JOIN job_history as jh WHERE e.employee_id = jh.employee_id; SELECT * FROM usersalary_view;