I would like to create on Stored Procedure. I am expecting logic should be as follows. could you please hlep some one
SP input parameter : IN "@MACH_CO_ID" VARCHAR(15000), IN "@TIMEZONEOFFSET" DECIMAL(4,2), IN "@STARTTIME" TIMESTAMP, IN "@ENDTIME" TIMESTAMP, IN "@LICENSETYP" INTEGER
Step 1: execute following select Query and with this
(SELECT CURRENT TIMESTAMP
- CURRENT TIMEZONE
WHERE CO_ID IN
Step2 : based on above query results I want to call Stored Procedure SP_TIME_AGGR_VIS_TEST1
Step 3: I want to call Stored Procedure SP_TIME_MONTH_AGGR_VIS_TEST2
Step 4 : results should be all the out put from SP_TIME_AGGR_VIS_TEST1 & SP_TIME_AGGR_VIS_TEST2 call.
have a look at the samples directory below sqllib
many samples for sp have been provided
or CREATE PROCEDURE (SQL)
Best Regards, Guy Przytula
Database Software Consultant
Good DBAs are not formed in a week or a month. They are created little by little, day by day. Protracted and patient effort is needed to develop good DBAs.
Spoon feeding : To treat (another) in a way that discourages independent thought or action, as by overindulgence.
DB2 UDB LUW Certified V7-V8-V9-V9.7-V10.1-V10.5 DB Admin - Advanced DBA -Dprop..
Information Server Datastage Certified http://www.infocura.be