diff --git a/db/routines/bi/procedures/rutasAnalyze.sql b/db/routines/bi/procedures/rutasAnalyze.sql index aee4d6132..a69e7c457 100644 --- a/db/routines/bi/procedures/rutasAnalyze.sql +++ b/db/routines/bi/procedures/rutasAnalyze.sql @@ -11,7 +11,7 @@ BEGIN DELETE FROM rutasBoard WHERE Fecha BETWEEN vDatedFrom AND vDatedTo; - DELETE rb.* + DELETE rb FROM rutasBoard rb JOIN vn.route r ON r.id = rb.Id_Ruta JOIN vn.ticket t ON t.routeFk = r.id