首页 小组 文章 相册 留言本 用户 搜索 我的社区 在线学堂 商城 购物车 支付钱包

[打卡]111

2024-04-12 17:03:44
0
160

SELECT last_name,department_name from employees, departments
WHERE employees.department_id=departments.department_id;
SELECT*FROM employees;
SELECT employee_id,last_name,department_name,city
FROM employees,departments,locations
WHERE employees.department_id=departments.department_id
AND departments.location_id=locations.location_id;

SELECT*FROM job_grades;
SELECT last_name,salary,grade_level
FROM employees,job_grades
WHERE employees.salary BETWEEN job_grades.lowest_sal
AND job_grades.highest_sal;


SELECT*FROM job_grades;
SELECT last_name,salary,grade_level
FROM employees,job_grades
WHERE employees.salary >=job_grades.lowest_sal
AND employees<=job_grades.highest_sal;

SELECT * FROM employees;
SELECT employee_id,last_name,employee_id,last_name
FROM employees emp,employees mgr
WHERE emp.manager_id=mgr.employee_id;

评论
此内容暂不接受评论!
意见反馈