Create a new table, EMP_PROMOTION to store the employees information. You must use a subquery to create the new table. Make the salary column invisible. Display the structure of the table in SQL Developer. Also use a SELECT statement to display all records from the new table EMP_PROMOTION.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
icon
Concept explainers
Question

Create a new table, EMP_PROMOTION to store the employees information. You must use a subquery to create the new table. Make the salary column invisible. Display the structure of the table in SQL Developer. Also use a SELECT statement to display all records from the new table EMP_PROMOTION.

**Database Table Creation and Structure**

The image presents details related to creating and altering a table named `EMP_PROMOTION`. Below is a transcription and explanation suitable for an educational context:

**Table Creation and Alteration:**
- The table `EMP_PROMOTION` has been created and subsequently altered.

**Table Structure:**

| Name        | Null   | Type           |
|-------------|--------|----------------|
| EMPLOYEE_ID |        | NUMBER(5)      |
| MANAGER_ID  |        | NUMBER(5)      |
| FIRST_NAME  | NOT NULL | VARCHAR2(10) |
| LAST_NAME   | NOT NULL | VARCHAR2(10) |
| SALARY      |        | NUMBER(6)      |

**Explanation:**

1. **EMPLOYEE_ID**: A numeric field with a maximum of 5 digits, representing a unique identifier for each employee.

2. **MANAGER_ID**: A numeric field with a maximum of 5 digits, indicating the identifier of the manager for each employee.

3. **FIRST_NAME**: A text field with a maximum length of 10 characters, which cannot be null, representing the first name of the employee.

4. **LAST_NAME**: A text field with a maximum of 10 characters, which cannot be null, representing the last name of the employee.

5. **SALARY**: A numeric field with a maximum of 6 digits, representing the salary of the employee.

**Sample Data:**

The image includes sample records from the table with the following structure:

| EMPLOYEE_ID | MANAGER_ID | FIRST_NAME  | LAST_NAME  |
|-------------|------------|-------------|------------|
| 1           |            | James       | Smith      |
| 2           | 1          | Ron         | Johnson    |
| 3           | 2          | Fred        | Hobbs      |
| 4           | 2          | Susan       | Jones      |
| 5           | 3          | Rob         | Green      |
| 6           | 3          | Jane        | Brown      |
| 7           | 3          | John        | Grey       |
| 8           | 4          | Jean        | Blue       |
| 9           | 4          | Henry       | Heyson     |
| 10          | 5          | Kevin       | Black      |
| 11          | 5          |
Transcribed Image Text:**Database Table Creation and Structure** The image presents details related to creating and altering a table named `EMP_PROMOTION`. Below is a transcription and explanation suitable for an educational context: **Table Creation and Alteration:** - The table `EMP_PROMOTION` has been created and subsequently altered. **Table Structure:** | Name | Null | Type | |-------------|--------|----------------| | EMPLOYEE_ID | | NUMBER(5) | | MANAGER_ID | | NUMBER(5) | | FIRST_NAME | NOT NULL | VARCHAR2(10) | | LAST_NAME | NOT NULL | VARCHAR2(10) | | SALARY | | NUMBER(6) | **Explanation:** 1. **EMPLOYEE_ID**: A numeric field with a maximum of 5 digits, representing a unique identifier for each employee. 2. **MANAGER_ID**: A numeric field with a maximum of 5 digits, indicating the identifier of the manager for each employee. 3. **FIRST_NAME**: A text field with a maximum length of 10 characters, which cannot be null, representing the first name of the employee. 4. **LAST_NAME**: A text field with a maximum of 10 characters, which cannot be null, representing the last name of the employee. 5. **SALARY**: A numeric field with a maximum of 6 digits, representing the salary of the employee. **Sample Data:** The image includes sample records from the table with the following structure: | EMPLOYEE_ID | MANAGER_ID | FIRST_NAME | LAST_NAME | |-------------|------------|-------------|------------| | 1 | | James | Smith | | 2 | 1 | Ron | Johnson | | 3 | 2 | Fred | Hobbs | | 4 | 2 | Susan | Jones | | 5 | 3 | Rob | Green | | 6 | 3 | Jane | Brown | | 7 | 3 | John | Grey | | 8 | 4 | Jean | Blue | | 9 | 4 | Henry | Heyson | | 10 | 5 | Kevin | Black | | 11 | 5 |
The image displays a table with four columns and multiple rows. Below is the transcribed content as it would appear on an educational website:

---

**Table Data:**

| ID | Number | First Name | Last Name |
|----|--------|------------|-----------|
| 20 | 10     | Terry      | Cliff     |
| 21 | 10     | Steve      | Green     |
| 22 | 10     | Roy        | Red       |
| 23 | 10     | Sandra     | Smith     |
| 24 | 10     | Gail       | Silver    |
| 25 | 11     | Gerald     | Gold      |
| 26 | 11     | Eileen     | Lane      |
| 27 | 12     | Doreen     | Upton     |
| 28 | 12     | Jack       | Ewing     |
| 29 | 12     | Paul       | Owens     |
| 30 | 13     | Melanie    | York      |
| 31 | 13     | Tracy      | Yellow    |
| 32 | 17     | Sarah      | White     |
| 33 | 18     | Terry      | Iron      |
| 34 | 18     | Christine  | Brown     |
| 35 | 20     | John       | Brown     |
| 36 | 20     | Kelvin     | Trenton   |
| 37 | 20     | Damon      | Jones     |

**Summary:** The table contains information about 18 individuals, detailing their ID, a number (which appears to represent their department or grouping), and their first and last names. The list concludes with the statement, "37 rows selected," indicating that a total of 37 entries were initially part of a query or selection process, although only 18 are shown here.

This format can facilitate understanding of data organization, allowing students to learn how to interpret basic tabular information, typical in databases or spreadsheets used in various educational fields.
Transcribed Image Text:The image displays a table with four columns and multiple rows. Below is the transcribed content as it would appear on an educational website: --- **Table Data:** | ID | Number | First Name | Last Name | |----|--------|------------|-----------| | 20 | 10 | Terry | Cliff | | 21 | 10 | Steve | Green | | 22 | 10 | Roy | Red | | 23 | 10 | Sandra | Smith | | 24 | 10 | Gail | Silver | | 25 | 11 | Gerald | Gold | | 26 | 11 | Eileen | Lane | | 27 | 12 | Doreen | Upton | | 28 | 12 | Jack | Ewing | | 29 | 12 | Paul | Owens | | 30 | 13 | Melanie | York | | 31 | 13 | Tracy | Yellow | | 32 | 17 | Sarah | White | | 33 | 18 | Terry | Iron | | 34 | 18 | Christine | Brown | | 35 | 20 | John | Brown | | 36 | 20 | Kelvin | Trenton | | 37 | 20 | Damon | Jones | **Summary:** The table contains information about 18 individuals, detailing their ID, a number (which appears to represent their department or grouping), and their first and last names. The list concludes with the statement, "37 rows selected," indicating that a total of 37 entries were initially part of a query or selection process, although only 18 are shown here. This format can facilitate understanding of data organization, allowing students to learn how to interpret basic tabular information, typical in databases or spreadsheets used in various educational fields.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Query Syntax
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education