Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions questions/joins/00030000-self.ex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
|QUESTIONNAME|
Produce a list of all members who have recommended another member
Produce a list of all members who were recommended by another member
|QUESTION|
How can you output a list of all members who have recommended another member? Ensure that there are no duplicates in the list, and that results are ordered by (surname, firstname).
How can you output a list of all members who were recommended by another member? Ensure that there are no duplicates in the list, and that results are ordered by (surname, firstname).
|QUERY|
select distinct recs.firstname as firstname, recs.surname as surname
from
Expand Down