Report 加 SQL statement(編號:8760)

If I want to use data environment to create a report from database, but the sql statement is depends on the user input (different from each time) , how can i solve this problem?
Thanks you so much