1965. Employees With Missing Information
https://leetcode.com/problems/employees-with-missing-information
Description
Table: Employees
+-------------+---------+
| Column Name | Type |
+-------------+---------+
| employee\_id | int |
| name | varchar |
+-------------+---------+
employee\_id is the primary key for this table.
Each row of this table indicates the name of the employee whose ID is employee\_id.Table: Salaries
+-------------+---------+
| Column Name | Type |
+-------------+---------+
| employee\_id | int |
| salary | int |
+-------------+---------+
employee\_id is the primary key for this table.
Each row of this table indicates the salary of the employee whose ID is employee\_id.Write an SQL query to report the IDs of all the employees with missing information. The information of an employee is missing if:
The employee's name is missing, or
The employee's salary is missing.
Return the result table ordered by employee_id in ascending order.
The query result format is in the following example:
ac
Previous1964. Find the Longest Valid Obstacle Course at Each PositionNext1966. Binary Searchable Numbers in an Unsorted Array
Last updated
Was this helpful?