员工表emp:
字段:empno(编号),ename(姓名),job(职位),mgr(上级的编号),hiredate(入职时间),sal(薪水),comm(奖金),deptno(部门编号)
部门表dept
字段:deptno(部门编号),dname(部门名),loc(地点)
一.介绍
1.显示sales部门位置及其员工的名称
select loc,ename from emp,dept where dept.dname ='sales' and emp.deptno=dept.deptno
2.显示雇员名,雇员工资及所在部门的名字