diff --git a/solution.pl b/solution.pl index 58c83e2..ba06ea9 100644 --- a/solution.pl +++ b/solution.pl @@ -247,7 +247,11 @@ selector(Row, Cols, [+Selector|Selectors], AccCols, AccVals, ColumnNames, Column Simplified variant of the selec/4 predicate when there are no conditions to be checked. */ -/* selec(TableOrTables, Selectors, Projection). */ +selec(TableOrTables, Selectors, Projection) :- + tabl(TableOrTables, Cols), + row(TableOrTables, R), + selector(R,Cols, Selectors, [],[],ColumnNames,ColumnValue), + Projection = ColumnNames/ColumnValue. :- dynamic query/2. /*