Create the following tables in your database with the following schema: Table: Employee | Column Name | Type | empId I name | supervisor | salary | int | varchar | | int | int empId is the primary key...


I want the full sql code including create table, insert table.... please


Create the following tables in your database with the following schema:<br>Table: Employee<br>| Column Name | Type<br>| empId<br>I name<br>| supervisor<br>| salary<br>| int<br>| varchar |<br>| int<br>| int<br>empId is the primary key column for this table.<br>Each row of this table indicates the name and the ID of an employee in<br>addition to their salary and the id of their manager.<br>Table: Bonus<br>| Column Name | Type |<br>| empId<br>| bonus<br>| int<br>| int<br>empId is the primary key column for this table.<br>empId is a foreign key to empId from the Employee table.<br>Each row of this table contains the id of an employee and their respective<br>bonus.<br>Add the following data to your tables:<br>Input:<br>Employee table:<br>| empId | name<br>| supervisor | salary |<br>| 3<br>| Brad<br>| null<br>| 4000<br>| 1000<br>| 2000<br>| 4000<br>| John<br>| 3<br>| 2<br>| 4<br>| Dan<br>| 3<br>| Thomas | 3<br>

Extracted text: Create the following tables in your database with the following schema: Table: Employee | Column Name | Type | empId I name | supervisor | salary | int | varchar | | int | int empId is the primary key column 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. Table: Bonus | Column Name | Type | | empId | bonus | int | int empId is the primary key column for this table. empId is a foreign key to empId from the Employee table. Each row of this table contains the id of an employee and their respective bonus. Add the following data to your tables: Input: Employee table: | empId | name | supervisor | salary | | 3 | Brad | null | 4000 | 1000 | 2000 | 4000 | John | 3 | 2 | 4 | Dan | 3 | Thomas | 3
Bonus table:<br>| empId | bonus |<br>| 2<br>| 4<br>| 500<br>| 2000<br>Write an SQL query to report the name and bonus amount of each employee with a bonus less than<br>1000.<br>Return the result table in any order.<br>The result should be:<br>Output:<br>| name | bonus I<br>| Brad | null<br>| John | null<br>| Dan<br>| 500<br>

Extracted text: Bonus table: | empId | bonus | | 2 | 4 | 500 | 2000 Write an SQL query to report the name and bonus amount of each employee with a bonus less than 1000. Return the result table in any order. The result should be: Output: | name | bonus I | Brad | null | John | null | Dan | 500

Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here