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

python - Writing Greek in matplotlib labels, titles -

c# - LINQ to Entities does not recognize the method 'Int32 IndexOf(System.String, System.StringComparison)' method -

Pygame memory leak with transform.flip -