assinging default values when nothing input to varibale by user.
529810Sep 7 2006 — edited Sep 8 2006Hello I need to right a script that will ask for 2 date ranges to be specified by the user, this script should default to the earliest and most recent date in a table if the user dosent enter anything for each value. My script will be something like this
SELECT *
FROM table1
WHERE order_date BETWEEN &var1 AND &var2
I tried using define to give the variables an initial value but instead the script uses that value and dosent ask for input. Is it possible to use varibales this way and if so then how can I do it.
Thanks
Mike