This article describes an educational tool, implemented in Prolog, that takes advantage of the connection between logic programming and databases to provide an evaluator for relational query languages. The tool utilizes a common data definition facility and provides the student with a choice of query languages: relational algebra, domain relational calculus, tuple relational calculus, and SQL. The students use the relational interpreter for a sequence of homework assignments that both provide invaluable feedback on each language and illustrate the differences between the languages.
ASJC Scopus subject areas
- Computer Science(all)