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.
SQL
SQL stands for Structured Query Language, is a form of communication that uses queries structured in a specific format to store, manage & retrieve data from a relational database.
Queries
A query is a type of computer programming language that is used to retrieve data from a database. Databases are useful in a variety of ways. They enable the retrieval of records or parts of records, as well as the performance of various calculations prior to displaying the results. A search query is one type of query that many people perform several times per day. A search query is executed every time you use a search engine to find something. When you press the Enter key, the keywords are sent to the search engine, where they are processed by an algorithm that retrieves related results from the search index. Your query's results are displayed on a search engine results page, or SER.
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 |](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Ff1bf2399-f913-4a71-a1ed-43d29c065340%2F3bf7cb97-e559-4881-b05d-c08c503106ef%2F0n3clx_processed.png&w=3840&q=75)
![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.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Ff1bf2399-f913-4a71-a1ed-43d29c065340%2F3bf7cb97-e559-4881-b05d-c08c503106ef%2Fpx6ubcf_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)