desktop_task_schedule/code/db/twr_常用.sql

18 lines
407 B
MySQL
Raw Permalink Normal View History

2023-11-26 15:19:12 +00:00
select *
from twr_telsaler_team;
SELECT ry.<EFBFBD><EFBFBD>Ա<EFBFBD><EFBFBD><EFBFBD><EFBFBD>,
ry.<EFBFBD><EFBFBD>Ա<EFBFBD><EFBFBD><EFBFBD><EFBFBD>,
team.team_code,
team.team_name,
bm.department_code,
bm.department_name
FROM twr_telsaler ry,
twr_telsaler_team team,
idst0.bm_t bm
WHERE ry.<EFBFBD>Ŷ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> = team.team_name
AND team.department_code = bm.department_code
AND (ry.<EFBFBD><EFBFBD>Ա<EFBFBD><EFBFBD><EFBFBD><EFBFBD> = '<EFBFBD><EFBFBD>С<EFBFBD><EFBFBD>' OR ry.<EFBFBD><EFBFBD>Ա<EFBFBD><EFBFBD><EFBFBD><EFBFBD> = '<EFBFBD><EFBFBD>С<EFBFBD><EFBFBD>');