Introduction
Dictionary database
6. Dictionary table – exercise 1
Summary

Instruction

Okay, let's start with our first exercise.

Exercise

Show each dictionary entry (name the column entry) together with the name of its direct hypernym (name the column hypernym).

Stuck? Here's a hint!

Type:

SELECT
  entries.word AS entry,
  hypernym.word AS hypernym
FROM dictionary AS entries
JOIN dictionary AS hypernym
  ON entries.hypernym_id = hypernym.entry_id

Console

Code editor

Result

TableConsole