Write a 200 word summary comparing and contrasting what you saw in terms of time to execute each step from 1-3, and why you think this is so. Next (not part of the aforementioned 200 words) state a situation in which you think each may be appropriate Append 10 records to the Student table of your own design – this means you will be creating 10 records to insert into the table This is accomplished via an Insert Into Student Values(1,2,3,etc….) You can model your queries off of the samples within Module 1, but bear in mind you now have indexes built and will not be able to duplicate rows so make sure you don’t use an ID in the student table that is already in use. Truncate and Replace the Sections table the truncate statement conveyed in the lecture slides, and then insert the data from Module 1 (note you do not want to run the create table portion again, as you’ve truncated the table it keeps the structure in place and just deletes the records).

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter3: Data Representation
Section: Chapter Questions
Problem 3RP
icon
Related questions
Question

Write a 200 word summary comparing and contrasting what you saw in terms of time to execute each step from 1-3, and why you think this is so. Next (not part of the aforementioned 200 words) state a situation in which you think each may be appropriate

  1. Append 10 records to the Student table of your own design – this means you will be creating 10 records to insert into the table
    1. This is accomplished via an Insert Into Student Values(1,2,3,etc….) You can model your queries off of the samples within Module 1, but bear in mind you now have indexes built and will not be able to duplicate rows so make sure you don’t use an ID in the student table that is already in use.
  2. Truncate and Replace the Sections table the truncate statement conveyed in the lecture slides, and then insert the data from Module 1 (note you do not want to run the create table portion again, as you’ve truncated the table it keeps the structure in place and just deletes the records).
e
C
nl
0
CONNECTIONS
✓ SERVERS
> AZURE
ΘΟΔΟ
II
localhost, <default> (sa)
Databases
System Databases
AShahbain
dbo
11
Tables
@ 06 % @
dbo.address
dbo.course
dbo.department
dbo.enrollment
dbo.faculty
dbo.section
dbo.student
Columns
BID (int, null)
Keys
YU
Name_First (varchar(2...
Name_Last (varchar(2...
Birth_Dt (varchar(255)...
Major (varchar(255), n...
Advisor_ID (int, null)
Address_ID (int, null)
Constraints
Triggers
Indexes
Statistics
Dropped Ledger Tables
Views
localhost:AShahbain
1
2
34567
SQLQuery_2 - localhost.AShahbain (sa)
4
Run Cancel Disconnect Change
Database: AShahbain
Enable Actual Plan✓ ParseEnable SQLCMD: To Notebook
INSERT INTO dbo.student (ID, Name_First, Name_Last) VALUES (56932, 45146, 86187)
INSERT INTO dbo.student (ID, Name_First, Name_Last) VALUES (56952, 45246, 82687)
INSERT INTO dbo.student (ID, Name_First, Name_Last) VALUES (58932, 45346, 86827)
INSERT INTO dbo.student (ID, Name_First, Name_Last) VALUES (56992, 457446, 84687)
INSERT INTO dbo.student (ID, Name_First, Name_Last) VALUES (50932, 45546, 8587)
INSERT INTO dbo.student (ID, Name_First, Name_Last) VALUES (56922, 45646, 86687)
INSERT INTO dbo.student (ID, Name_First, Name_Last) VALUES (76932, 45746, 87687)
INSERT INTO dbo.student (ID, Name_First, Name_Last) VALUES (50932, 45846, 88687)
INSERT INTO dbo.student (ID, Name_First,Name_Last) VALUES(56972, 45946, 86987)
7
8
9
10
Messages
5:40:58 PM
Screen Reader Optimized Ln 9, Col 73
SQLQuery_2 - localh...in (sa)
Started executing query at Line 1
(1 row affected)
(1 row affected)
(1 row affected)
(1 row affected)
(1 row affected)
(1 row affected)
(1 row affected)
(1 row affected)
(1 row affected)
Total execution time: 00:00:00.079
Spaces: 4
dbo.student
S
UTF-8 LF
Estimated Plan
0 rows MSSQL 00:00:00 localhost: AShahbain
15370
Coc
08
D
stall
ots
ot
11 PM
ot
6
6 PM
Transcribed Image Text:e C nl 0 CONNECTIONS ✓ SERVERS > AZURE ΘΟΔΟ II localhost, <default> (sa) Databases System Databases AShahbain dbo 11 Tables @ 06 % @ dbo.address dbo.course dbo.department dbo.enrollment dbo.faculty dbo.section dbo.student Columns BID (int, null) Keys YU Name_First (varchar(2... Name_Last (varchar(2... Birth_Dt (varchar(255)... Major (varchar(255), n... Advisor_ID (int, null) Address_ID (int, null) Constraints Triggers Indexes Statistics Dropped Ledger Tables Views localhost:AShahbain 1 2 34567 SQLQuery_2 - localhost.AShahbain (sa) 4 Run Cancel Disconnect Change Database: AShahbain Enable Actual Plan✓ ParseEnable SQLCMD: To Notebook INSERT INTO dbo.student (ID, Name_First, Name_Last) VALUES (56932, 45146, 86187) INSERT INTO dbo.student (ID, Name_First, Name_Last) VALUES (56952, 45246, 82687) INSERT INTO dbo.student (ID, Name_First, Name_Last) VALUES (58932, 45346, 86827) INSERT INTO dbo.student (ID, Name_First, Name_Last) VALUES (56992, 457446, 84687) INSERT INTO dbo.student (ID, Name_First, Name_Last) VALUES (50932, 45546, 8587) INSERT INTO dbo.student (ID, Name_First, Name_Last) VALUES (56922, 45646, 86687) INSERT INTO dbo.student (ID, Name_First, Name_Last) VALUES (76932, 45746, 87687) INSERT INTO dbo.student (ID, Name_First, Name_Last) VALUES (50932, 45846, 88687) INSERT INTO dbo.student (ID, Name_First,Name_Last) VALUES(56972, 45946, 86987) 7 8 9 10 Messages 5:40:58 PM Screen Reader Optimized Ln 9, Col 73 SQLQuery_2 - localh...in (sa) Started executing query at Line 1 (1 row affected) (1 row affected) (1 row affected) (1 row affected) (1 row affected) (1 row affected) (1 row affected) (1 row affected) (1 row affected) Total execution time: 00:00:00.079 Spaces: 4 dbo.student S UTF-8 LF Estimated Plan 0 rows MSSQL 00:00:00 localhost: AShahbain 15370 Coc 08 D stall ots ot 11 PM ot 6 6 PM
2002 @
-fault> (sa)
abases
dress
urse
partment
rollment
culty
ction
udent
nns
nt, null)
ne_First (varchar(2...
ne_Last (varchar(2...
n_Dt (varchar(255)...
or (varchar(255), n...
sor_ID (int, null)
ress_ID (int, null)
traints
YOU
ers
es
=tics
ed Ledger Tables
SQLQuery_3 - localhost.AShahbain (sa)
localhost:AShahbain
SQLQuery_3 - localh...in (sa)
Run Cancel Disconnect Change Database: AShahbain
Enable Actual Plan✓ ParseEnable SQLCMD: To Notebook
1 TRUNCATE TABLE dbo.section
Messages
6:04:04 PM
Started executing query at Line 1
Commands completed successfully.
Total execution time: 00:00:00.061
SQLQuery_2 - localh...in
Estimated Plan
08
Transcribed Image Text:2002 @ -fault> (sa) abases dress urse partment rollment culty ction udent nns nt, null) ne_First (varchar(2... ne_Last (varchar(2... n_Dt (varchar(255)... or (varchar(255), n... sor_ID (int, null) ress_ID (int, null) traints YOU ers es =tics ed Ledger Tables SQLQuery_3 - localhost.AShahbain (sa) localhost:AShahbain SQLQuery_3 - localh...in (sa) Run Cancel Disconnect Change Database: AShahbain Enable Actual Plan✓ ParseEnable SQLCMD: To Notebook 1 TRUNCATE TABLE dbo.section Messages 6:04:04 PM Started executing query at Line 1 Commands completed successfully. Total execution time: 00:00:00.061 SQLQuery_2 - localh...in Estimated Plan 08
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Dataset
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
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning