Write a query to display the following under a single column:
- Names of all students enrolled in the Java course
- Names of all the books that belong to the Java course
- Names of all authors who have written at least one book that belongs to Java
The result should look something like this:
type | javaData |
---|
Student | Joaquin |
Book | Basics of Java |
Student | Heath |
Author | Mat Reeves |
Book | Advanced Java |
Hint:
If we want to select type
as Book
, and name of book from books
, we can use the following query: