mirror of
https://github.com/IdalecioSch/dbTrabai.git
synced 2026-07-27 16:26:04 -03:00
legivel por inteiro
This commit is contained in:
committed by
GitHub
parent
bbc4a50760
commit
271a43e5a9
+1
-2
@@ -36,8 +36,7 @@ BEGIN
|
||||
UPDATE encomenda
|
||||
SET valor = (
|
||||
SELECT COALESCE(
|
||||
SUM(m.custo + LENGTH(i.frase) * m.valor_letra),
|
||||
0.00
|
||||
SUM(m.custo + LENGTH(i.frase) * m.valor_letra), 0.00
|
||||
)
|
||||
FROM item i
|
||||
JOIN placa p ON p.id = i.placa_id
|
||||
|
||||
Reference in New Issue
Block a user