By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,924 Members | 1,686 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,924 IT Pros & Developers. It's quick & easy.

How to pass the date parameter in the DB2 stored Procedure

P: 1
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.
Nov 22 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.