﻿CREATE PROCEDURE [dbo].SP_PDF_DACANCELLARE
AS  
BEGIN
 SELECT d.IdPdf 
 FROM DocumentiPdf d join ImagePdf i on  d.idPdf = i.idPdf
 WHERE idStato = 'D' 
	AND idArchivio = 'A' 
	AND i.[image] IS NOT NULL	   
END