Working with Views

Query more effectively with SQL views! A view is a saved SQL query. Learn how to create, modify, and remove views in SQL Server, MySQL, Oracle, and PostgreSQL.

Table of contents

10 free interactive coding challenges

Lifetime access


limited to this course only


Buy now

Want a better deal?


Get unlimited lifetime access to all 69 present and future courses

Save $450

Unlimited lifetime access


to all 69 present and future courses



75% OFF

Buy now

Interactive exercises

10 h

Estimated time


Users enrolled


206 ratings

Say hello to Working with Views! This is the fourth course in the track Creating Database Structure. We assume that you know how to use SQL to create a table. If you’re a complete beginner, we recommend that you first go through our courses The Basics of Creating Tables in SQL, Data Types in SQL, and SQL Constraints.

Cover image for the course 'Working with Views'

Do you want to simplify queries or limit the visibility of some data? Then you need database views. In this course, you will learn how to create and manage views with SQL. You will take a closer look at common use cases for views and how changes in table or view definitions can cascade to other database objects.

This interactive course is based on standard SQL. What you learn here will work with all popular relational database management systems, including SQL Server, MySQL, Oracle, and PostgreSQL databases.

In this course, we discuss standard views and also take a look at non-standard extensions, such as updateable and materialized views. Even though they are not defined in the SQL standard, many database engines support materialized views. We believe that this is a feature every data engineer should be familiar with.

Working with Views is designed for beginner IT professionals, computer science students, and others with some knowledge of SQL. Are you a programmer, developer or database administrator (DBA)? Do you want to progress beyond SQL basics? Then this is the perfect course for you.

The topics covered in this course are:

  • View basics. Learn what a view is, how it differs from a table, and how and when to use it.
  • Modifying and dropping views. Discover how to alter and remove views.
  • Updateable and materialized views. Understand what materialized views are and when to create them. This also covers modifying table data through a view.

This course is interactive. You’ll learn how to create and alter views by writing real SQL commands directly in your web browser. Our platform runs your command and verifies your solution. You don’t need to install any additional software on your computer.

What Do You Need to Take This Course?

  • A web browser and an internet connection.
  • Knowledge of SQL, including SELECT, INSERT, UPDATE, and DELETE.
  • Basic understanding of the CREATE TABLE syntax.

This Course Will Teach You How To:

  • Define SQL views.
  • Create, modify, and remove views.
  • Use views in SQL queries.
  • Understand how table changes influence views.
  • Define updateable views.
  • Create and refresh materialized views.

Who Should Take This Course?

  • Beginning developers and programmers
  • Beginning database administrators (DBAs)
  • Students taking classes in relational databases
  • Anyone who wants to learn to use SQL views

Table of contents


Paid content


Course progress


Exercises completed


View Basics

Learn what SQL views are and how you can use them in SQL queries.


Your first view

How to use views



Modifying views

How to delete and modify views.


Deleting views

Deleting and modifying tables with views

Modifying views



Updatable and materialized views

Learn when you can update data through a view. Get to know materialized views and how they speed up querying views.


Updatable views

Materialized views


Reviews (1)

Average rating



206 ratings


5 stars


4 stars


3 stars


2 stars


1 stars