Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
傅伟强-富德
/
test
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8f0686c9
authored
Sep 12, 2018
by
傅伟强-富德
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new file
1 parent
31a36e56
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
0 deletions
服务人员部门银行网点查询SQL
服务人员部门银行网点查询SQL
0 → 100644
View file @
8f0686c
--862203 机构
--862203 机构
--031829 部门
select * from department_info di where di.channel_type='02';
select * from rn_dept_servicer rd ,department_info di
where rd.dept_no=di.dept_no
and di.channel_type='02'
;
--满足条件的个险续收人员
select si.dept_no,si.emp_no,ro.market_flag, ro.bank_flag,ro.agent_flag,di.branch_code from staff_info si,department_info di,renewal_staff_info_other ro
where si.dept_no=di.dept_no
and si.emp_no=ro.emp_no
and di.channel_type='07'
and si.is_valid='Y'
and ro.market_flag='Y'
and di.branch_code = '861100';
--满足条件的部门
select * from department_info di
where di.is_valid='Y'
and di.branch_code='866404';
--满足条件的银代续收人员
select si.dept_no,si.emp_no,ro.market_flag, ro.bank_flag,ro.agent_flag from staff_info si,department_info di,renewal_staff_info_other ro
where si.dept_no=di.dept_no
and si.emp_no=ro.emp_no
and di.channel_type='07'
and si.is_valid='Y'
and ro.bank_flag='Y';
--满足条件的银行网点
select * from department_info di
where di.is_valid='Y'
and di.channel_type='02'
and di.branch_code='866404'
and di.dept_no='0256601011001011';
select * from gras_dept_servicer;
select * from gras_bank_emp ;
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment