A view can be a simple straight query, or it can be a more complex joined query. The technique is the same.
- [Instructor] A view can be a simple, straight query, … or it can be a more complex, joined query. … The technique is exactly the same. … Again, we're using the Album Database here, … and you notice I have this query where I'm joining … from Track on the left and Album on the right, … and I'm splitting out our duration as minutes and seconds. … And so when I execute this query, … I get artist, album, track, trackno, minutes, and seconds … for the entire album and track tables. … Now, I can take this query here, … and I can make this into a subselect, or rather into a View. … I just say CREATE VIEW, … and I'll call it joinedAlbum AS. … And there we have it. … And now, when I execute this query, … it simply creates the View, … and now, we can use the View just like a table. … I can say SELECT * FROM joinedAlbum … like this. … And when I execute that query, … we get exactly that same result. … And we see that in the Album table, there's our View. … So then we can take something like this, …
This course was created by Bill Weinman. We are pleased to offer this training in our library.
- How databases are organized
- Selecting rows and columns
- Creating new tables
- Inserting and updating data
- Sorting and filtering
- Accessing related tables with JOIN
- Working with strings
- Understanding numeric types
- Using aggregate functions and transactions
- Automating data with triggers
- Creating views
- Using CRUD functions
Skill Level Beginner
2. SQL Overview
3. Fundamental Concepts
7. Dates and Times
Dates and times2m 6s
11. Views and Subselects
12. A Simple CRUD Application
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.