I have it. "Details of all films shown by the club between any two dates entered by the user. For example, a member of the club should be able to enter a start date and an end date for query parameters."
Now, how will I do user input? The only way I can think of is to use php or something with an html form, get the values, and then pass them as variables in the request. However, this is not what you need. So how to do this so that the query asks for values? Or can't you?
My request looks like this.
SELECT film.title, film.desc, show.sdate, show.fdate FROM film INNER JOIN show ON film.ID=show.filmID WHERE sdate = '&userstart' AND fdate = '&userend'
How do I work with user input? Is the query true also? I do not have the ability to test, I have only a design, not an implementation.
thanks a lot
Edit: Using Windows MS SQL Server.
source share