Despite having spent an hour researching I can\'t seem to figure out how to correctly define a variable and then use it in your SQL.
This is what I have so far produ
Take in mind that Oracle's PL/SQL is not SQL.
PL/SQL is a procedural language. SQL is not procedural, but you can define "variables" the user can enter via the "&var" syntax (see http://www.orafaq.com/node/515).