1
我試圖從運行Node.js的卡桑德拉的複雜SQL和使用Cassandra的快遞包裹它以下是查詢卡珊德拉的複雜的SQL:如何運行通過節點JS
client.execute("select distinct c.objekt PSP, b.bestellung purchase_order, b.details, b.bestellnettowert Budget, c.Interim_Amounts, c.belegdatum, b.cost_centre
from
(select objekt, sum("Wert/KWahr") Interim_Amounts, belegdatum, bestellung from bdr.cj74 where year(belegdatum) = '2016' group by objekt, belegdatum, bestellung) c,
(select bestellung, "Lieferant/Lieferwerk" details, bestellnettowert, belegdatum, "PSP-Elm", "Kostenst." cost_centre from bdr.opexcapex where year(opexcapex.belegdatum) = '2016') b
where b."PSP-Elm" = c.objekt
and year(c.belegdatum) = year(b.belegdatum)
and c.bestellung = b.bestellung", [],
function(err, result) {
如果我運行簡單的選擇聲明它正在工作,任何幫助將是偉大的!