Connecting Tech Pros Worldwide Help | Site Map

How to pass the date parameter in the DB2 stored Procedure

Newbie
 
Join Date: Nov 2007
Posts: 1
#1: Nov 22 '07
Hi Experts,

Could you please help me in the below query?

Please help in the below situation, how can create the stored Procedure.

I need to create a stored procedure and need to pass date parameter.
whenever I execute my stored procedure,It'll extract the previous 4 days data.
e.g,If I can run on 16-11-2007 , It should extract 15,14,13,12 data
and main thing is here
If I can run on 20-11-2007(Tuesday) It should extract 19,16,15,14 data.
It can't extract data on saturday and sunday's data.

Lookforward for your Valuble suggetions.

Thanks Inadvance,
Satish Kumar.
Reply


Similar DB2 Database bytes