Write a query to display details of employees with the text “Not given”, if the commission is null

1 answer

To display details of employees with the text "Not given" when the commission is null, you can use the following SQL query:

```sql
SELECT employee_id, first_name, last_name, hire_date, commission_pct
FROM employees
WHERE commission_pct IS NULL
AND commission_pct = 'Not given';
```

This query selects the employee_id, first_name, last_name, hire_date, and commission_pct columns from the employees table. The WHERE clause filters the results to only include rows where the commission_pct is null and also equal to the text "Not given".
Similar Questions
    1. answers icon 1 answer
  1. Which option describes the purpose of a summary?(1 point)Responses to add supporting details to a text to add supporting details
    1. answers icon 1 answer
  2. 1. What does a summary do?(1 point)a. Includes the reader's own o b. Adds more supporting details to a text pinions about the
    1. answers icon 21 answers
    1. answers icon 3 answers
more similar questions