Posts by Alexandru • 61 points
2 posts
-
5
votes1
answer1048
viewsQ: Can I invoke Function on a Trigger?
My Function done on Sql-Server: CREATE FUNCTION dbo.getQuantidade(@idProd char) RETURNS float AS BEGIN DECLARE @QTD float SET @QTD = (SELECT (prod.Quantidade) FROM Produto prod where @id_prod =…
-
1
votes1
answer2356
viewsQ: Incorrect syntax error near the keyword 'FROM'
This code generates the following error: Msg 156, Level 15, State 1, Procedure totalGastoPedido, Line 7 Incorrect syntax near the keyword 'FROM'. CREATE FUNCTION dbo.totalGastoPedido(@id_mesa int)…
sql-serverasked Alexandru 61