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) {
如果我运行简单的选择声明它正在工作,任何帮助将是伟大的!