100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

WGU CS1011 Sophia Introduction to Relational Databases Milestone 2 Retake Questions and Answers Score 20/25.

Rating
-
Sold
-
Pages
37
Grade
A+
Uploaded on
06-11-2023
Written in
2023/2024

WGU CS1011 Sophia Introduction to Relational Databases Milestone 2 Retake Questions and Answers Score 20/25. 20/25  that's 80% RETAKE  20 questions were answered correctly. 4 questions were answered incorrectly. 1 question was skipped. These were marked incorrect. In each milestone, you may want or need to use the database and query tool to answer some of the questions. We suggest you open the tool in another browser tab while you are working on this assessment. Which of the following is true of foreign keys? ●   ● Tables could be created first to avoid having to create foreign keys in order.  A foreign key should always be linked to a primary key of another table. ● A foreign key can be linked to any foreign key. UNIT 2 — MILESTONE 2 20/25 CONCEPT → Foreign and Primary Keys 2 RATIONALE In most cases, a foreign key should be linked to a candidate key that is generally a primary key or a unique key. Foreign keys could be temporarily disabled to simplify dropping the tables or moving valid data. Foreign keys could also be added after tables have been created to avoid having to generate them in the right order. Report an issue with this question In each milestone, you may want or need to use the database and query tool to answer some of the questions. We suggest you open the tool in another browser tab while you are working on this assessment. Which of the following is the valid syntax for creating a VIEW to view a subset of a table? ● ● A foreign key is not needed if the data type is different. ● CREATE VIEW album_cost AS track GROUP BY album_id; UNIT 2 — MILESTONE 2 20/25 CONCEPT → VIEW to Provide a Subset 3 RATIONALE Common mistakes include- forgetting the "AS", not doing a select statement, and not including the FROM clause. Report an issue with this question In each milestone, you may want or need to use the database and query tool to answer some of the questions. We suggest you open the tool in another browser tab while you are working on this assessment.  ● ● CREATE VIEW album_cost AS SELECT album_id, SUM(unit_price) GROUP BY album_id; ● CREATE VIEW album_cost SELECT album_id, SUM(unit_price) FROM track GROUP BY album_id;  CREATE VIEW album_cost AS SELECT album_id, SUM(unit_price) FROM track GROUP BY album_id; UNIT 2 — MILESTONE 2 20/25 Which of the following queries will use a subquery to find all of the rows in the track table that has a unit_price of 0.99 and has the length of the song in milliseconds that is longer than the AVG track length of all tracks in the album_id between 5 and 10?  ● SELECT * FROM TRACK WHERE milliseconds > SELECT AVG(milliseconds) FROM track WHERE album_id BETWEEN 5 AND 10 AND unit_price = 0.99;  SELECT * FROM TRACK WHERE milliseconds > (SELECT AVG(milliseconds) FROM track WHERE album_id BETWEEN 5 AND 10) AND unit_price = 0.99; ● SELECT AVG(milliseconds) FROM TRACK WHERE milliseconds > (SELECT * FROM track WHERE album_id BETWEEN 5 AND 10) AND unit_price = 0.99; SELECT * FROM TRACK WHERE milliseconds > UNIT 2 — MILESTONE 2 20/25 CONCEPT → Subqueries 4 RATIONALE Common issues include not using ( and ) around the subquery, not having the condition in the right WHERE clause, having more columns being returned in the subquery than in the column comparison list, or not using the aggregate function in the subquery. Report an issue with this question.

Show more Read less
Institution
WGU CS1011
Course
WGU CS1011











Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
WGU CS1011
Course
WGU CS1011

Document information

Uploaded on
November 6, 2023
Number of pages
37
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

  • wgu cs1011 questi

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
EXCELLENTNURSE Chamberlain College Of Nursing
View profile
Follow You need to be logged in order to follow users or courses
Sold
1204
Member since
3 year
Number of followers
989
Documents
5541
Last sold
4 days ago
TOP SELLER

Welcome All to this page. Here you will find ; ALL DOCUMENTS, PACKAGE DEALS, FLASHCARDS AND 100% REVISED & CORRECT STUDY MATERIALS GUARANTEED A+. NB: ALWAYS WRITE A GOOD REVIEW WHEN YOU BUY MY DOCUMENTS. ALSO, REFER YOUR COLLEGUES TO MY DOCUMENTS. ( Refer 3 and get 1 free document). I AM AVAILABLE TO SERVE YOU AT ANY TIME. WISHING YOU SUCCESS IN YOUR STUDIES. THANK YOU.

3.9

167 reviews

5
93
4
23
3
21
2
6
1
24

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card or EFT and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions