Creating and Using Views in MySQL

Published July 26, 2025 By Sai Sree Ram Gundepudi

Example

CREATE VIEW emp_salary_view AS SELECT name, salary FROM employees WHERE salary > 50000;

SELECT * FROM emp_salary_view;

Was this solution helpful?

Your feedback helps improve our technical knowledge repository.

Share this article