You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
455 B
MySQL
9 lines
455 B
MySQL
5 years ago
|
/*25. Write a query in SQL to display full name(first and last name), job title, starting and ending date of last jobs for
|
||
|
those employees with worked without a commission percentage.*/
|
||
|
SELECT first_name || ' ' || last_name AS Employee_name,
|
||
|
job_title, start_date, end_date
|
||
|
FROM job_history a
|
||
|
JOIN jobs b USING (job_id)
|
||
|
JOIN employees c
|
||
|
ON ( a.employee_id = c.employee_id)
|
||
|
WHERE commission_pct IS NULL;
|