You have a Fabric tenant that contains a warehouse named Warehouse!. Warehousel contains two schemas name schemal and schema2 and a table named schemal.city.
You need to make a copy of schemal.city in schema2. The solution must minimize the copying of data.
Which T-SQL statement should you run?
Suggested Answer: B
Get Premium DP-600 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
38 comments · newest first
CH
Chantay
11 months ago
Wait, is "CREATE TABLE AS CLONE OF" even a valid syntax?
AL
Alesia
11 months ago
I disagree, A seems more straightforward.
DE
Denae
12 months ago
B definitely sounds like the way to go!
CH
Charlene
12 months ago
I think C would just create a full copy, not efficient at all.
MA
Maile
12 months ago
Option B is the best choice for minimizing data copying.
LA
Lashonda
1 year ago
I'm leaning towards option A, but I wonder if it really minimizes the data copying like the question asks.
HE
Heidy
1 year ago
I feel like option C is a common approach, but it might not minimize data copying as effectively as option B.
FE
Felix
1 year ago
I remember practicing a similar question where we had to copy tables, but I can't recall if using "INSERT INTO" is the most efficient way.
MA
Marjory
1 year ago
I think option B sounds familiar, but I'm not entirely sure if "CLONE OF" is the right syntax for T-SQL.
LI
Lilli
1 year ago
I'm a little confused by the wording of this question. What exactly do they mean by "minimize the copying of data"? Is there a specific performance or storage concern we need to address? I'm leaning towards option A, but I want to make sure I fully understand the requirements first.
KA
Kanisha
1 year ago
Ah, this is a good one! I think option C is the way to go here. Creating a new table and selecting all the data from the original table is a classic SQL technique that should get the job done without any unnecessary data copying.
SH
Shawnna
1 year ago
Hmm, I'm a bit unsure about this one. I know we need to minimize the copying of data, but I'm not sure if the "CLONE OF" syntax is the right approach. Maybe I should double-check the other options to see if there's a more standard SQL solution.
CR
Crissy
1 year ago
This looks like a straightforward data copying task. I think I'll go with option B - it seems like the most efficient way to create a copy of the table without actually copying the data.
GE
Georgene
2 years ago
I heard the Fabric team is working on a new feature called 'schema2.city.exe' for an even more efficient data cloning process.
JA
Jackie
1 year ago
C) CREATE TABLE schema2.city AS SELECT * FROM schemal.city;
SE
Sean
1 year ago
B) CREATE TABLE schema2.city AS CLONE OF schemal.city;
JA
Janna
1 year ago
A) INSERT INTO schema2.city SELECT * FROM schemal.city;
WY
Wynell
2 years ago
Option A might work, but it feels a bit overkill if we just need to copy the table. I'd go with Option B for simplicity.
CH
Christoper
1 year ago
Option D doesn't seem like the right choice in this scenario.
GE
Georgiana
1 year ago
I would go with Option C for clarity.
JO
Joseph
1 year ago
I agree, Option B seems simpler and more straightforward.
LU
Luisa
2 years ago
I think Option A is the best choice.
MA
Mabelle
2 years ago
I'm leaning towards Option B as well. It seems like the most straightforward and elegant solution to the problem.
LE
Leah
2 years ago
Hmm, I'm not sure if Option D is a typo or someone's attempt at humor. 'schema2.eity' doesn't sound right.
TH
Theola
2 years ago
User 2
SO
Sol
2 years ago
User 1
TR
Tracey
2 years ago
I'm not sure, but I think option A could also work. It's always good to double-check the syntax though.
ZO
Zona
2 years ago
I agree with Shanice, option C seems like the most efficient way to copy the table.
VA
Valda
2 years ago
Option B looks like the way to go. It's a clean and efficient solution that minimizes data copying.
JE
Jettie
1 year ago
User4: Option B is definitely the cleanest solution for minimizing data copying.
ZA
Zack
1 year ago
User3: I agree, option B looks like the way to go.
KR
Kristine
1 year ago
User2: Yeah, option B seems like the most efficient solution.
JU
Julianna
1 year ago
User1: I think option B is the best choice.
CA
Carmela
1 year ago
User1: True, but Option B specifically mentions minimizing data copying.
CA
Carey
1 year ago
User3: I think Option C could also work, just selecting the data from schemal.city.
VE
Veronika
1 year ago
User2: I agree, it seems like the most efficient solution.
VA
Val
2 years ago
User1: Option B looks like the way to go.
SH
Shanice
2 years ago
I think the correct answer is C) CREATE TABLE schema2.city AS SELECT * FROM schemal.city;