Ver originalSELECT V.*FROM Ventas VINNER JOIN DetalleVentas DV ON V.IdDocumento=DV.IdVentaWHERE V.Fecha BETWEEN @FCH_INI AND @FCH_FIN