datalog - Datomic aggregates usage -


I want to find people with the lowest age with the next query
  (d / q '[: search name (minutes? age): [[name] age]]] [["John" 20] ["Bill" 25] ["Jack" 20] ["Steve" 28] ["Andrew" 30] ]]   

But the result is

  [[Andrew] 30] ["Bill" 25] ["Jack" 20] ["John" 20] ["Steve" 28]]   

How to do this?

This will be a pure list

  ([db [["John" [20] ["Bill" 25] ["Jack" 20] ["Steve" 28] ["Andrew" 30 ]]] (D / q '[: search?] * Mi-Edge: In $? Mi-Edge: Where [Name] Mi-Age]] DB (FFirst (D / q '[: Search [(name, age]]]] DB ())))   

is not a part of the query language of a type of stream in SQL, but later all queries are executed in peer, nested queries have no upper part. < / Div>

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -