Hi Eric, > So far I've done the mods to the database rel you suggested and I have this > query: > (? (select (@A) ((year +Agenda 2019) (week +Agenda 32) (same 2019 @A year) > (same 32 @A week)) ) > which works and gives me results like these: > @A = {1643} > ... > @A = {1731} > > Now, is there any way to get all those results in a list like this: > ( {1643} ... {1731})
Yes, by passing this query to 'solve': (solve '((select ... If you made the model with +Aux, a much more efficient way is (collect 'year '+Agenda (2019 32)) or, to get week 32 till 40, (collect 'year '+Agenda (2019 32) (2019 40)) ☺/ A!ex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe