Consider an sql statement select id forename surname from


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?

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Consider an sql statement select id forename surname from
Reference No:- TGS02619042

Expected delivery within 24 Hours