April 2024
Intermediate to advanced
127 pages
2h 29m
English
In the last three chapters, we learned to write some pretty complex SELECT statements to get information from our databases.
In this chapter, we’ll learn another concept that is closely related to SELECT statements - the concept of views.
Simply stated, an SQL view is a virtual table.
In contrast to actual tables, views do not contain data. Instead, they contain SELECT statements. The data to display is retrieved using those SELECT statements.
One advantage of using views is that it allows programmers to simplify their code. They can write relatively complex SELECT statements to join multiple tables into a single virtual table. Once that is done, they can access that virtual table like a normal table ...
Read now
Unlock full access