I’ve been working this puzzle and I am stuck on this very last bit. I have a single SQL statement in a SQL query:
UPDATE courses SET pid=? WHERE course_name=?;
Parameters are passed and replace the ?s sequentially like so: (query, “Biology”, 345533).
How can I change my SQL syntax (ie switch the order of pid=? and course_name=?) to point “Biology” to course_name and 345533 to pid?
Rules: Only one (1) SQL statement is allowed. Cannot change the order of parameters.
Assuming that Cade Roux is on the right track in terms of what is desired, you could try: