我試圖建立以下查詢在ClojureQL: SELECT ixIso, MIN(IF(dtDespatched, fQuantity, 0)) AS quantity
FROM IsoItem WHERE fQuantity > 0
GROUP BY ixIso
HAVING quantity < 1
我一直在嘗試下面的代碼的變化,它立足我off this IRC
我需要生成如下: (clojureql.core/join (clojureql.core/table db :tableA) (clojureql.core/table db :tableA)
(clojureql.core/where (apply and (= :tableA.id :tableB.id)
[(apply or [(clojureql.predi