From f968fda27049fcda753f1bdac5c40bac5c1cbfa7 Mon Sep 17 00:00:00 2001 From: duboissim Date: Thu, 14 Mar 2024 18:53:32 +0100 Subject: [PATCH] selec/3 implem --- solution.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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. /*