From the course: Oracle Database 12c: Advanced SQL
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Creating complex views - Oracle Database Tutorial
From the course: Oracle Database 12c: Advanced SQL
Creating complex views
- [Instructor] Because Oracle's data disputes can essentially be used where regular database tables are used as part of the sequel queries, you can also join database views and database tables in the same sequence statement. That's because database views can essentially be used interchangeably where tables are used. Going to exercise file, let's copy the select statement, and paste it to our sequel developer window. This is a fairly straight forward sequel statement which joins the emp sales view with the departments view as if emp sales was a table and not a view. Running the sequel command, we see that we got our results back as expected. In addition to using views as part of a joint syntax in our sequel queries, you can also create the view that contains the joint syntax as part of the view syntax itself. So, for example, going to our exercise file, let's copy the create view locations view syntax and paste it into our sequel developer window. Here we are creating a locations view…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
(Locked)
Introduction to sequences2m 8s
-
(Locked)
Creating sequences7m 6s
-
(Locked)
Using identity columns7m 23s
-
(Locked)
Introduction to table triggers3m 1s
-
(Locked)
Creating triggers5m 24s
-
(Locked)
Introduction to PL/SQL procedures3m 55s
-
(Locked)
Introduction to PL/SQL functions1m 21s
-
(Locked)
Introduction to PL/SQL packages2m 21s
-
(Locked)
Creating PL/SQL procedures and functions7m 40s
-
(Locked)
Creating synonyms4m 24s
-
(Locked)
Creating simple views2m 24s
-
(Locked)
Creating complex views5m 13s
-
(Locked)
-
-