Views Quiz - Feedback
You achieved a score of 3.00 out of 3.00.
Your answers, as well as our explanations, are shown below.
This quiz uses an approach pioneered and patented by the Gradiance Corporation. Each multiple-choice quiz problem is based on a "root question," from which the system generates different correct and incorrect choices each time you take the quiz. Thus, you can test yourself on the same material multiple times. We strongly urge you to continue testing on each topic until you complete the quiz with full credit at least once. Although we record all scores, we only use the highest score you achieve.
After submitting your selections the system will score your quiz, and for incorrect answers will provide an "explanation" (sometimes for correct ones too). These explanations should help you get the right answer the next time around. To prevent rapid-fire guessing, the system enforces a minimum of 10 minutes between each submission of solutions.
If the quiz is taken after the deadline, in addition to hint-like explanations for specific choices, the system will provide more general explanations for each problem. We do not use scores for quizzes taken after the deadline.
Book(ISBN, title, year) // ISBN and title cannot be NULL Author(ISBN, name) // ISBN and name cannot be NULLand the following view definition over this schema:
Create View V as
Select Book.ISBN, count(*)
From Book, Author
Where Book.ISBN = Author.ISBN
And Author.name Like 'A%'
And Book.year > 2000
Group By Book.ISBN
This view is not updatable according to the SQL standard, for a number of reasons. Which of the following is a valid reason for the view being non-updatable according to the standard?| Your answer | Score | Choice explanation |
|---|---|---|
| Two tables in FROM clause | 1.00 | Updatable views must have only one table in their top-level FROM clause. |
| Total | 1.00 / 1.00 | |
Create View V as
Select A+B as D, C
From T
Consider the following query over view V:
Select D, sum(C) From V Group By D Having Count(*) <> 1Which of the following tuples is in the query result?
| Your answer | Score | Choice explanation |
|---|---|---|
| (6,7) | 1.00 | |
| Total | 1.00 / 1.00 | |
MovieStar(NAME, address, gender, birthdate) MovieExecutive(LICENSE#, name, address, netWorth) Studio(NAME, address, presidentLicense#)Each of the choices describes, in English, a view that could be created with a query on these tables. Which one can be written as a SQL view that is updatable according to the SQL standard?
| Your answer | Score | Choice explanation |
|---|---|---|
| A view "RichExecNums" containing the license number and net worth of all executives with a net worth of at least $10,000,000. | 1.00 | Although name and address are omitted from the view, they are permitted to be NULL. |
| Total | 1.00 / 1.00 | |