Employee Bonus
<p>Table: <code>Employee</code></p>

<pre>
+-------------+---------+
| Column Name | Type    |
+-------------+---------+
| empId       | int     |
| name        | varchar |
| supervisor  | int     |
| salary      | int     |
+-------------+---------+
empId is the column with unique values for this table.
Each row of this table indicates the name and the ID of an employee in addition to their salary and the id of their manager.
</pre>

<p>&nbsp;</p>

<p>Table: <code>Bonus</code></p>

<pre>
+-------------+------+
| Column Name | Type |
+-------------+------+
| empId       | int  |
| bonus       | int  |
+-------------+------+
empId is the column of unique values for this table.
empId is a foreign key (reference column) to empId from the Employee table.
Each row of this table contains the id of an employee and their respective bonus.
</pre>

<p>&nbsp;</p>

<p>Write a solution to report the name and bonus amount of each employee with a bonus <strong>less than</strong> <code>1000</code>.</p>

<p>Return the result table in <strong>any order</strong>.</p>

<p>The&nbsp;result format is in the following example.</p>

<p>&nbsp;</p>
<p><strong class="example">Example 1:</strong></p>

<pre>
<strong>Input:</strong> 
Employee table:
+-------+--------+------------+--------+
| empId | name   | supervisor | salary |
+-------+--------+------------+--------+
| 3     | Brad   | null       | 4000   |
| 1     | John   | 3          | 1000   |
| 2     | Dan    | 3          | 2000   |
| 4     | Thomas | 3          | 4000   |
+-------+--------+------------+--------+
Bonus table:
+-------+-------+
| empId | bonus |
+-------+-------+
| 2     | 500   |
| 4     | 2000  |
+-------+-------+
<strong>Output:</strong> 
+------+-------+
| name | bonus |
+------+-------+
| Brad | null  |
| John | null  |
| Dan  | 500   |
+------+-------+
</pre>

['combine-two-tables']
['Create table If Not Exists Employee (empId int, name varchar(255), supervisor int, salary int)', 'Create table If Not Exists Bonus (empId int, bonus int)', 'Truncate table Employee', "insert into Employee (empId, name, supervisor, salary) values ('3', 'Brad', NULL, '4000')", "insert into Employee (empId, name, supervisor, salary) values ('1', 'John', '3', '1000')", "insert into Employee (empId, name, supervisor, salary) values ('2', 'Dan', '3', '2000')", "insert into Employee (empId, name, supervisor, salary) values ('4', 'Thomas', '3', '4000')", 'Truncate table Bonus', "insert into Bonus (empId, bonus) values ('2', '500')", "insert into Bonus (empId, bonus) values ('4', '2000')"]
[{"value": "mysql", "text": "MySQL", "defaultCode": "# Write your MySQL query statement below\n"}, {"value": "mssql", "text": "MS SQL Server", "defaultCode": "/* Write your T-SQL query statement below */\n"}, {"value": "oraclesql", "text": "Oracle", "defaultCode": "/* Write your PL/SQL query statement below */\n"}, {"value": "pythondata", "text": "Pandas", "defaultCode": "import pandas as pd\n\ndef employee_bonus(employee: pd.DataFrame, bonus: pd.DataFrame) -> pd.DataFrame:\n    "}, {"value": "postgresql", "text": "PostgreSQL", "defaultCode": "-- Write your PostgreSQL query statement below\n"}]
{"mysql": ["Create table If Not Exists Employee (empId int, name varchar(255), supervisor int, salary int)", "Create table If Not Exists Bonus (empId int, bonus int)"], "mssql": ["Create table Employee (empId int, name varchar(255), supervisor int, salary int)", "Create table Bonus (empId int, bonus int)"], "oraclesql": ["Create table Employee (empId int, name varchar(255), supervisor int, salary int)", "Create table Bonus (empId int, bonus int)"], "database": true, "name": "employee_bonus", "manual": false, "pythondata": ["Employee = pd.DataFrame([], columns=['empId', 'name', 'supervisor', 'salary']).astype({'empId':'Int64', 'name':'object', 'supervisor':'Int64', 'salary':'Int64'})", "Bonus = pd.DataFrame([], columns=['empId', 'bonus']).astype({'empId':'Int64', 'bonus':'Int64'})"], "postgresql": ["Create table If Not Exists Employee (empId int, name varchar(255), supervisor int, salary int)\n", "Create table If Not Exists Bonus (empId int, bonus int)"], "database_schema": {"Employee": {"empId": "INT", "name": "VARCHAR(255)", "supervisor": "INT", "salary": "INT"}, "Bonus": {"empId": "INT", "bonus": "INT"}}}
{"mysql": ["MySQL", "<p><code>MySQL 8.0</code>.</p>"], "mssql": ["MS SQL Server", "<p><code>mssql server 2019</code>.</p>"], "oraclesql": ["Oracle", "<p><code>Oracle Sql 11.2</code>.</p>"], "pythondata": ["Pandas", "<p>Python 3.10 with Pandas 2.2.2 and NumPy 1.26.4</p>"], "postgresql": ["PostgreSQL", "<p>PostgreSQL 16</p>"]}
['Database']