Question: Consider an SQL statement: SELECT id, forename, surname FROM authors WHERE forename = ‘john' AND surname = ‘smith'
a. What is this statement intended to do?
b. Assume that the forename and surname fields are being gathered from user supplied input, and suppose the user responds with: Forename: john Surname: smith What will be the effect?
c. Now suppose the user responds with: Forename: jo'; drop table authors-- Surname: smith What will be the effect?