CREATE PROCEDURE dbo.GetLastCleaningDate @ARoomNumber INT, @ACleanSTATUS INT, @ALastDate DATETIME OUTPUT AS
SELECT TOP 1  @ALastDate = CleaningDate 
			FROM RoomCleaningDate (NOLOCK)
			WHERE RoomNumber = @ARoomNumber AND CleanStatus = @ACleanSTATUS
			ORDER BY CleaningDate DESC