Salve,
ho cercato di creare questa stored procedure in SQL Server
codice:
CREATE PROCEDURE INSASS
(
 @DATA DATETIME
)
AS
INSERT assunzione (id_assunzioni,data_assunzione)
VALUES ((SELECT MAX  id_assunzioni FROM Lavora_per),@DATA)
ma mi viene restituito quest'errore:


Server: Msg 1046, Level 15, State 1, Procedure INSASS, Line 7
Subqueries are not allowed in this context. Only scalar expressions are allowed.


Dove sbaglio?
Grazie