Write the SQL code to create a copy of EMP_1, including all of its data, and naming the copy EMP_2.

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

Write the SQL code to create a copy of EMP_1, including all of its data, and naming the copy EMP_2.

FIGURE P8.1 THE CH08_CONSTRUCTCO DATABASE
Database name: Ch08_ConstructCo
Relational diagram
Table name: EMPLOYEE
ASSGNVENT
ASEIGN NUM
ASSICN DATE
PROI NUM
EME NUM
EMP NUM EMP LNAME EMP FNAME EMP NTIAL EMP HREDATE JOe_CODE EMP YEARS
101
102
103
News
John
08-Nov-00 502
12
JOe DESCRUFTION
Senior
David
H
12-Jul-89 501
23
aranisnaor
Arbough
Ramoras
June
01-Dec-96 S00
18
ASSIGNJOS
ASSIGN CHGHE
ASSICN HOURS
ASSION CHARGE
104
Anne
15-Nov-87 501
25
105
Johnson
Alice
K
01-Feb-93 502
19
EVPLOVEE
EMP MUM
EMP UNIE
EMP PAME
PROECT
106
107
108
109
110
Smthtield
liam
22-Jun-04 500
Alonzo
Maria
10-Oct-93 500
19
ROLNAME
PROLVALUE
PRO BALANCE
EMP NURM
Washington
Raph
Larry
22-Aug-91 501
21
EMP NTAL
EMP HEDATE
Smth
18-Ju-97 501
15
Olenko
Gerald
11-Dec-95 505
17
EMP EAAS
111
Wabash
Geoff
04-Apr-91 506
21
112
Smthson
Darlene
23-Oct-94 507
18
113
Joenbrood
Debert
K
15-Nov-96 508
16
Table name: JOB
Annelse
114
Jones
20-Aug-83 508
25-Jan-92 501
19
115
Travis
Bawang
Pratt
20
JOB CODE JOe DESCRPTIONJOE CHG HOUR JOB LAST UPDATE
116
Gerald
L
05-Mar-97 510
15
Programmer
Syatems Arlyet
Dte Deigner
Eectricl Engineer
Mechenicl Engneer
500
35.75
20-Nov17
117
Wllamson
Angie
H
19-Jun-96 509
16
501
502
S6.75
20-Nov17
24-M-18
125.00
118
Frommer
James
04-Jan-05 510
503
84 50
20-Nov-17
Table name: ASSIGNMENT
504
6790
20-Nov-17
O Engneer
Cerical Spport
DSS Analyst
Applotions Designer
55.78
20-Nov-17
ASSKN NUN ASSIGN_DATE FROJNUM EVP NUM ASSIGN_JDe ASSIGN_CHO_R ASSIGNHOURS ASSGN_CHARGE
26 87
20-Nov-17
s07
508
1001
1002
22-Mar-18 18
22-Mar-18 22
103
117
503
509
509
84 50
345
35
42
295 75
145.11
45.95
20-Nov-17
48.10
24-Ma-18
1003
22-Mar-18 18
117
3455
20
6910
509
Bo Technon
34.55
20-Nov-17
1004
22-Mer-10 18
103
503
0450
59
490 55
510
General Sugport
18.36
20-Nov17
1005
22-Mer-18 25
108
501
975
22
212 85
1000
22-Mar-10 22
14
S01
42
40035
192 05
76. 05
1007
22-Mar-18 25
113
S00
SC.75
1000
22 Mer. 10 18
1009
23-Mer-18 15
115
501
SE75
55
541 80
Table name: PROJECT
PROJ NUM PROJ_NAME
100
23-Mer-18 15
23-Mar-18 25
117
509
34 55
24
82 92
451 50
PROJ VALUE
PROJ BALA
EMP NUM
101
105
502
10E 00
43
1012
23-Mar-18 18
108
501
SE 75
34
328 95
15
Evergreen
Amber Wave
1453500 00
1002350.00 103
103
23 Mer-18 25
115
601
975
20
199 50
18
3500500 .00
2110346.00 108
1014
23 Mer-18 22
104
601
75
28
270 90
22
Roling Tide
Starfight
805000 00
500345.20 102
105
23-Mar-10 15
103
503
04.50
515.45
25
2650500 00
2309880.00 107
106
23-Mar-10 22
105
502
10.00
47
493.50
23-Mer-1 18
11
3455
35
131 29
108
23-Mer-18 25
117
S09
34 55
22
76 01
109
24-Mar-10 25
104
43
4145
1020
24-Mar-18 15
101
502
12500
3.1
387 50
1021
24Mar.1 2
108
501
11C 50
27
298 35
1022
24-Mar-18 22
115
501
11C 50
541 45
1023
437 50
24-Mar-18 22
24-Mar-18 15
1(6
502
503
125 00
64 50
35
33
1024
103
278 85
1025
24-Mar-18 18
117
509
3455
42
14511
Transcribed Image Text:FIGURE P8.1 THE CH08_CONSTRUCTCO DATABASE Database name: Ch08_ConstructCo Relational diagram Table name: EMPLOYEE ASSGNVENT ASEIGN NUM ASSICN DATE PROI NUM EME NUM EMP NUM EMP LNAME EMP FNAME EMP NTIAL EMP HREDATE JOe_CODE EMP YEARS 101 102 103 News John 08-Nov-00 502 12 JOe DESCRUFTION Senior David H 12-Jul-89 501 23 aranisnaor Arbough Ramoras June 01-Dec-96 S00 18 ASSIGNJOS ASSIGN CHGHE ASSICN HOURS ASSION CHARGE 104 Anne 15-Nov-87 501 25 105 Johnson Alice K 01-Feb-93 502 19 EVPLOVEE EMP MUM EMP UNIE EMP PAME PROECT 106 107 108 109 110 Smthtield liam 22-Jun-04 500 Alonzo Maria 10-Oct-93 500 19 ROLNAME PROLVALUE PRO BALANCE EMP NURM Washington Raph Larry 22-Aug-91 501 21 EMP NTAL EMP HEDATE Smth 18-Ju-97 501 15 Olenko Gerald 11-Dec-95 505 17 EMP EAAS 111 Wabash Geoff 04-Apr-91 506 21 112 Smthson Darlene 23-Oct-94 507 18 113 Joenbrood Debert K 15-Nov-96 508 16 Table name: JOB Annelse 114 Jones 20-Aug-83 508 25-Jan-92 501 19 115 Travis Bawang Pratt 20 JOB CODE JOe DESCRPTIONJOE CHG HOUR JOB LAST UPDATE 116 Gerald L 05-Mar-97 510 15 Programmer Syatems Arlyet Dte Deigner Eectricl Engineer Mechenicl Engneer 500 35.75 20-Nov17 117 Wllamson Angie H 19-Jun-96 509 16 501 502 S6.75 20-Nov17 24-M-18 125.00 118 Frommer James 04-Jan-05 510 503 84 50 20-Nov-17 Table name: ASSIGNMENT 504 6790 20-Nov-17 O Engneer Cerical Spport DSS Analyst Applotions Designer 55.78 20-Nov-17 ASSKN NUN ASSIGN_DATE FROJNUM EVP NUM ASSIGN_JDe ASSIGN_CHO_R ASSIGNHOURS ASSGN_CHARGE 26 87 20-Nov-17 s07 508 1001 1002 22-Mar-18 18 22-Mar-18 22 103 117 503 509 509 84 50 345 35 42 295 75 145.11 45.95 20-Nov-17 48.10 24-Ma-18 1003 22-Mar-18 18 117 3455 20 6910 509 Bo Technon 34.55 20-Nov-17 1004 22-Mer-10 18 103 503 0450 59 490 55 510 General Sugport 18.36 20-Nov17 1005 22-Mer-18 25 108 501 975 22 212 85 1000 22-Mar-10 22 14 S01 42 40035 192 05 76. 05 1007 22-Mar-18 25 113 S00 SC.75 1000 22 Mer. 10 18 1009 23-Mer-18 15 115 501 SE75 55 541 80 Table name: PROJECT PROJ NUM PROJ_NAME 100 23-Mer-18 15 23-Mar-18 25 117 509 34 55 24 82 92 451 50 PROJ VALUE PROJ BALA EMP NUM 101 105 502 10E 00 43 1012 23-Mar-18 18 108 501 SE 75 34 328 95 15 Evergreen Amber Wave 1453500 00 1002350.00 103 103 23 Mer-18 25 115 601 975 20 199 50 18 3500500 .00 2110346.00 108 1014 23 Mer-18 22 104 601 75 28 270 90 22 Roling Tide Starfight 805000 00 500345.20 102 105 23-Mar-10 15 103 503 04.50 515.45 25 2650500 00 2309880.00 107 106 23-Mar-10 22 105 502 10.00 47 493.50 23-Mer-1 18 11 3455 35 131 29 108 23-Mer-18 25 117 S09 34 55 22 76 01 109 24-Mar-10 25 104 43 4145 1020 24-Mar-18 15 101 502 12500 3.1 387 50 1021 24Mar.1 2 108 501 11C 50 27 298 35 1022 24-Mar-18 22 115 501 11C 50 541 45 1023 437 50 24-Mar-18 22 24-Mar-18 15 1(6 502 503 125 00 64 50 35 33 1024 103 278 85 1025 24-Mar-18 18 117 509 3455 42 14511
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

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