This should help you:
Hi Pierre, is not working...."error, unexpected IDENT, expecting SET..."2016-06-09 14:26 GMT-03:00 Pierre-Adrien Coustillas <pcoustillas@1g6.biz>:Hi,Try it :UPDATEMY_TABLE a,( SELECT(SUM( t.mins * t.acpm ) / t.rcpmax) AS calc1(SUM( t.mins * t.acxh ) / t.acxmax) AS calc2FROM MY_TABLE tGROUP BY t.source, t.name_id) qSETa.awc = q.calc1,a.lcr = q.calc2WHERE a.source = q.sourcePierreDe: "Alberto Ferrari" <aferrari@starconnecting.com>
À: "Communication channel for MonetDB users" <users-list@monetdb.org>
Envoyé: Jeudi 9 Juin 2016 19:05:25
Objet: Update JOIN?Is it possible to Update Join in Monet?I need something like this... (just an example)UPDATEMY_TABLE AS a,( SELECT(SUM( t.mins * t.acpm ) / t.rcpmax) AS calc1(SUM( t.mins * t.acxh ) / t.acxmax) AS calc2FROM MY_TABLE AS tGROUP BY t.source, t.name_id) AS qSETa.awc = q.calc1,a.lcr = q.calc2WHERE a.source = q.sourceAND a.name_id = q.name_id
When I try to execute this type of query, I get this error...syntax error, unexpected AS, expecting SET in: "update sb_rmsv.rmsv_nts_nt_sum_report as"
_______________________________________________
users-list mailing list
users-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/users-list