edgedb / easy-edgedb

An illustrated textbook designed to be a one-stop shop for learning EdgeDB
https://www.edgedb.com/easy-edgedb
77 stars 39 forks source link

changed answer of question #2 in chapter #16 #50

Closed slavugan closed 2 years ago

slavugan commented 2 years ago

current answer result: edgedb> SELECT (Person.name, find(Person.name, 'ma')); {('Lucy', -1), ('Count Dracula', -1), ('Crewman 1', 4)}

new answer result: edgedb> with x := (select (Person.name, find(Person.name, 'ma'))) select x.0 filter x.1 > -1; {'Crewman 1'}

slavugan commented 2 years ago

missed "and" in question, so PR is wrong