DECLARE @maximoID INT = (Select max(d_d.documentos_index) from documentacion_doc d_d where d_d.DOCUMENTACION_ID_DOCUMENTACION = 260)