You have an Azure SQL database named DB1. You plan to create the following four tables in DB1 by using the following code. Table1. Table2. Table3. Table4. You need to identify which table must be created last. What should you identify?
Suggested Answer:B🗳️
Table1 references Table4. Therefore Table4 must be created before Table1. Table2 references Table1 and Table3. Therefore Table1 and Table3 must be created before Table2. Note: FOREIGN KEY REFERENCES is a constraint that provides referential integrity for the data in the column or columns. FOREIGN KEY constraints require that each value in the column exists in the corresponding referenced column or columns in the referenced table. FOREIGN KEY constraints can reference only columns that are PRIMARY KEY or UNIQUE constraints in the referenced table or columns referenced in a UNIQUE INDEX on the referenced table. Incorrect Answers: A: Table1 is referenced by Table2 and should be crated before Table2. C: Table3 is referenced by Table2 and should be crated before Table2. D: Table4 is referenced by Table1 and should be crated before Table1. Reference: https://docs.microsoft.com/en-us/sql/t-sql/statements/create-table-transact-sql?view=sql-server-ver15
Of course the answer is correct, but this is pure SQL, has nothing to do with Azure architecture and is also not part of the official training material.
Yes the answer is correct . . . logically. But because no foreign key constraints are defined as part of the create table means you can create the tables in any order!
Table1 references Table4. Therefore Table4 must be created before Table1.
Table2 references Table1 and Table3. Therefore Table1 and Table3 must be created before Table2
Answer is B
This section is not available anymore. Please use the main Exam Page.AZ-303 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
xaccan
Highly Voted 4 years, 7 months agopentium75
Highly Voted 4 years agoKemalM
Most Recent 3 years, 5 months agoAnsh27feb
3 years, 6 months agoasemaan
3 years, 10 months agosyu31svc
3 years, 11 months agoRockers
4 years, 3 months agoRamkid
4 years, 5 months agosujeetkb2021
4 years, 6 months agomactone
4 years, 6 months agomactone
4 years, 6 months ago