emp_dept_name
| Documentation | Employees (MySQL database) |
| Name | emp_dept_name |
Returns the department name of a given employee
Input/Output
| Mode | Name | Data type | Description | |
|---|---|---|---|---|
| 1 | OUT | Returns | varchar(40) | Returns the department name of a given employee |
| Returns the department name of a given employee | ||||
| 2 | IN | employee_id | int(10, 0) | Employee identification number |
| Employee identification number | ||||
Script
begin return ( select dept_name from departments where dept_no = emp_dept_id(employee_id) ); end |
Exported: 2018-11-09 14:32, Last imported: 2018-08-06 09:21
