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.

Table EMP_PROMOTION created.
Table EMP PROMOTION altered.
Name
Null
Туре
ΕMPLOYE_ID
NUMBER (5)
MANAGER_ID
FIRST_NAME NOT NULL VARCHAR2 (10)
NUMBER (5)
LAST_NAME
NOT NULL VARCHAR2 (10)
SALARY
NUMBER (6)
Transcribed Image Text:Table EMP_PROMOTION created. Table EMP PROMOTION altered. Name Null Туре ΕMPLOYE_ID NUMBER (5) MANAGER_ID FIRST_NAME NOT NULL VARCHAR2 (10) NUMBER (5) LAST_NAME NOT NULL VARCHAR2 (10) SALARY NUMBER (6)
EMPLOYEE_ID MANAGER_ID FIRST_NAME LAST_NAME
James
Smith
2
1 Ron
Johnson.
3
2 Fred
Hobbs
4
2 Susan
Jones
3 Rob
Green
6
3 Jane
Brown
7
3 John
Grey
4 Jean
Blue
4 Henry
Неузon
10
5 Kevin
Black
5 Keith
5 Frank
11
Long
12
Howard
13
6 Doreen
Penn
6 Mark
7 Jill
7 Megan
14
Smith
15
Jones
16
Craig
17
8 Matthew
Brant
8 Tony
8 Tanya
18
Clerke
19
Conway
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
37 rows selected
Transcribed Image Text:EMPLOYEE_ID MANAGER_ID FIRST_NAME LAST_NAME James Smith 2 1 Ron Johnson. 3 2 Fred Hobbs 4 2 Susan Jones 3 Rob Green 6 3 Jane Brown 7 3 John Grey 4 Jean Blue 4 Henry Неузon 10 5 Kevin Black 5 Keith 5 Frank 11 Long 12 Howard 13 6 Doreen Penn 6 Mark 7 Jill 7 Megan 14 Smith 15 Jones 16 Craig 17 8 Matthew Brant 8 Tony 8 Tanya 18 Clerke 19 Conway 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 37 rows selected
Expert Solution
Step 1

Objective:

A table "EMP_PROMOTION" would be created using sub-query from an existing relation containing employee data. After that, the salary attribute would be made invisible altering the new table so that information for this column would not be displayed.

EMP_PROMOTION {EMPLOYEE_ID,MANAGER_ID,FIRSTNAME,LASTNAME,SALARY} 

Here, the SQL queries are executed on the Oracle server.

 

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