Y2S1-Database_Design/SQL/queries/DML/query 5.sql
2020-06-07 22:29:59 +01:00

9 lines
195 B
Transact-SQL

CREATE PROCEDURE RemoveUser @UserID integer
AS
DELETE FROM RoleAllocation
WHERE UserID = @UserID;
DELETE FROM ProfilePicture
WHERE UserID = @UserID;
DELETE FROM Comment
WHERE UserID = @UserID;
GO