This is a simple sql query.
SELECT cli.CLIENTE as clientet
FROM [V30].[dbo].[parmaq] as par,[V30].[dbo].[clientes] as cli
where cli.CLIENTE=par.EMPRESA
and par.data > 'parameter1' and par.data < 'parameter2'
What I would like to do is having an executable or something that allows me to enter the values from 'parameter1' and 'parameter2' to finally show the results with an excel. I am not sure if the excel itself can put input parameters on a query without catching the values from a column.