Advertisement
Advertisement
| 06.02.2008 at 01:34AM PDT, ID: 23449202 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: |
USE [MasterFileSQL]
GO
/****** Object: StoredProcedure [dbo].[for_final_statement_revenus] Script Date: 06/02/2008 11:23:44 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[for_final_statement_revenus]
@givenTKN_NO int
AS
BEGIN
delete from final_revenus
where tkn_no = @givenTKN_NO;
INSERT INTO [MasterFileSQL].[dbo].[final_revenus]
([tkn_no]
,[id_main]
,[id_sub]
,[dailyTransSum]
,[original_balance]
,[afterTransbalance]
,[available_balance])
select @givenTKN_NO,
acc_sub.ID_main,
acc_sub.id_sub,
0.000,
0.000,
0.000,
0.000
from acc_sub
where acc_sub.id_main = 2;
declare
cursor c1 is select trans_amount from daily_trans where tkn_no = @givenTKN_NO and ID_MAIN = 2;
begin
for i in c1 loop
update final_revenu set dailyTransSum = sum(i.trans_amount) where ID_MAIN = i.ID_MAIN and ID_SUB = i.ID_SUB;
end loop;
commit;
end
END
|