0% found this document useful (0 votes)
35 views12 pages

SP Test

Uploaded by

Pravin Landge
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views12 pages

SP Test

Uploaded by

Pravin Landge
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 12

Test Case Base Table Hisory Table

Inserting values User_info user_info_history

Updateing values user_info user_info_history

Inserting values BRANCH_INFO BRANCH_INFO_HISTORY

Updateing values BRANCH_INFO BRANCH_INFO_HISTORY


Inserting values USER_ROLE_MAPPING user_role_mapping_history

Updateing values USER_ROLE_MAPPING user_role_mapping_history

Inserting values client_info client_info_history

Updateing values client_info client_info_history

Inserting values BRANCH_INFO BRANCH_INFO


Stream Procedure Name

user_info_stream SCD_Type2

user_info_stream SCD_Type2

BRANCH_INFO_stream2 SCD_Type2

BRANCH_INFO_stream2 SCD_Type2
USER_ROLE_MAPPING_stream SCD_Type2

USER_ROLE_MAPPING_stream SCD_Type2

client_info_stream SCD_Type2

client_info_stream SCD_Type2

BRANCH_INFO_stream NEW_CLIENT_ONBOARDING
Calling Statement

CALL GT_DB.ADMIN.SCD_Type2(
'GT_DB.Admin.USER_INFO_STREAM',
'GT_DB.Admin.USER_INFO_HISTORY',
ARRAY_CONSTRUCT('USER_ID'),
ARRAY_CONSTRUCT('name', 'email', 'create_date', 'update_date',
'active_flag','sso_flag','user_type','created_by','updated_by')
);

CALL GT_DB.ADMIN.SCD_Type2(
'GT_DB.Admin.USER_INFO_STREAM',
'GT_DB.Admin.USER_INFO_HISTORY',
ARRAY_CONSTRUCT('USER_ID'),
ARRAY_CONSTRUCT('name', 'email', 'create_date', 'update_date',
'active_flag','sso_flag','user_type','created_by','updated_by')
);

CALL GT_DB.ADMIN.SCD_Type2(
'GT_DB.Admin.BRANCH_INFO_STREAM2',
'gt_db.admin.BRANCH_INFO_HISTORY',
ARRAY_CONSTRUCT('BRANCH_ID'),
ARRAY_CONSTRUCT('client_id', 'branch_name', 'tan_number', 'create_date',
'update_date','onboarded_month','operational_flag','person_pan','person_desig
nation','person_email','person_contact','created_by','updated_by')
);

CALL GT_DB.ADMIN.SCD_Type2(
'GT_DB.Admin.BRANCH_INFO_STREAM2',
'gt_db.admin.BRANCH_INFO_HISTORY',
ARRAY_CONSTRUCT('BRANCH_ID'),
ARRAY_CONSTRUCT('client_id', 'branch_name', 'tan_number', 'create_date',
'update_date','onboarded_month','operational_flag','person_pan','person_desig
nation','person_email','person_contact','created_by','updated_by')
);
CALL GT_DB.ADMIN.SCD_Type2(
'GT_DB.Admin.USER_ROLE_MAPPING_stream',
'GT_DB.admin.user_role_mapping_history',
ARRAY_CONSTRUCT('USER_ROLE_ID'),
ARRAY_CONSTRUCT('user_id', 'client_id', 'branch_id','role_id', 'create_date',
'update_date','active_flag','created_by','updated_by')
);

CALL GT_DB.ADMIN.SCD_Type2(
'GT_DB.Admin.USER_ROLE_MAPPING_stream',
'GT_DB.admin.user_role_mapping_history',
ARRAY_CONSTRUCT('USER_ROLE_ID'),
ARRAY_CONSTRUCT('user_id', 'client_id', 'branch_id','role_id', 'create_date',
'update_date','active_flag','created_by','updated_by')
);

CALL GT_DB.ADMIN.SCD_Type2(
'GT_DB.Admin.client_info_stream',
'GT_DB.admin.client_info_history',
ARRAY_CONSTRUCT('client_id'),
ARRAY_CONSTRUCT('group_name', 'client_name', 'client_pan', 'create_date',
'update_date','residential_status','email_address','accounting_type','created_by',
'updated_by')
);

CALL GT_DB.ADMIN.SCD_Type2(
'GT_DB.Admin.client_info_stream',
'GT_DB.admin.client_info_history',
ARRAY_CONSTRUCT('client_id'),
ARRAY_CONSTRUCT('group_name', 'client_name', 'client_pan', 'create_date',
'update_date','residential_status','email_address','accounting_type','created_by',
'updated_by')
);

call NEW_CLIENT_ONBOARDING();
Output

SCD Type 2 process completed successfully

SCD Type 2 process completed successfully

SCD Type 2 process completed successfully

SCD Type 2 process completed successfully


SCD Type 2 process completed successfully

SCD Type 2 process completed successfully

SCD Type 2 process completed successfully

SCD Type 2 process completed successfully

Successfully created database and schema


Snap(base table)
Snap(hisory table)

You might also like