Creating and Using Views in MySQL

Published July 26, 2025 By Sai Sree Ram Gundepudi

Create a View

CREATE VIEW high_salary_emps AS 
SELECT name, salary FROM employees WHERE salary > 60000;

Use the View

SELECT * FROM high_salary_emps;

Views can simplify complex joins and calculations.

Was this solution helpful?

Your feedback helps improve our technical knowledge repository.

Share this article