Student (sno: integer, stname: string, major: string, level: string, age: integer)
Class (name: string, meets_at: string, room: string, fid: integer)
Enrolled (sno: integer, cname: string)
Faculty (fid: integer, fname: string, deptid: integer)
Find the names of all students and the names of all classes they are enrolled in (if any)
SELECT S.stname, E.cname
FROM Student S LEFT JOIN Enrolled E ON S.sno = E.sno
Example of SQL Outer Join
·
Oracle SQL
Archives
-
▼
2010
(49)
-
▼
February
(49)
- Null Values in SQL Group By
- Examples of SQL Having & SQL Group By
- SQL Inline Views
- SQL Join View
- Modifying SQL Views (Insert, Update and Delete on ...
- SQL Scalar subquery
- SQL Correlated Subquery
- SQL Inline View Subquery
- Examples of Oracle PL/SQL Cursors
- Oracle PL/SQL WHERE CURRENT OF & FOR UPDATE
- Oracle PL/SQL REF Cursors
- Oracle PL/SQL Cursors With Parameters
- Oracle PL/SQL Cursor For Loops
- Oracle PL/SQL Explicit Cursors
- Oracle PL/SQL Implicit Cursors
- PL/SQL Programmer Defined Records
- PL/SQL Cursor Based Records
- PL/SQL Table Based Records
- Oracle PL/SQL Nested Tables
- Oracle PL/SQL Varrays
- Oracle PL/SQL Tables
- Oracle PL/SQL Records
- SQL PL/SQL Interview Questions
- PL/SQL Triggers
- Oracle PL/SQL Cursors
- PL/SQL Collections
- PL/SQL Introduction
- Join Using Multiple Tables (more than 2)
- SQL Equi-join
- SQL Cross Join
- Example of SQL Self Join
- SQL Self Join
- Example of SQL Inner Join
- SQL Inner Join/ SQL Natural Join:
- Example of SQL Outer Join
- SQL Outer Join
- Example of Simple SQL Join
- SQL Interview Questions
- SQL Views
- SQL Subqueries
- SQL Having
- SQL Group By Examples
- SQL Group By
- SQL Joins
- SQL Delete
- SQL Update
- SQL Insert
- SQL Syntax
- SQL Introduction
-
▼
February
(49)