Machine-translated by Google. Questions are authored in English.
Top

Database Redesign Questions and Answers

Answer: B

Correct answer: from the bottom up.

A regular subquery does not depend on the outer query, so it can be evaluated once, on its own, and its result then used by the query above it - bottom up. A correlated subquery references a column of the outer query and must therefore be re-evaluated for each candidate row, which is why it is described as nested and why it is generally the more expensive of the two.

Please log in or register to report this question.

Answer: A

Correct answer: a common database design task.

Cardinalities change because requirements change - a one-to-many relationship becomes many-to-many when the business decides an item may belong to more than one category, or a maximum cardinality of one becomes optional. Such changes are routine, and they are handled by adding or removing an intersection table, or by altering a foreign key and its constraints, not by rebuilding the database.

Please log in or register to report this question.

33.

Information systems and organizations do not just influence each other; they create each other.

Answer: A

Correct answer: True

The relationship runs both ways. An organisation’s structure and processes shape the systems built for it, and those systems then constrain and reshape how the organisation works - which is why a database redesign is rarely a purely technical exercise and why the organisation often has to change alongside it.

Please log in or register to report this question.

34.

A tool that can help designers understand the dependencies of database structures is a:

Answer: A

Correct answer: dependency graph.

A dependency graph shows the database’s structures as nodes and their dependencies as arcs, so that before changing anything the designer can see what refers to it - the views, constraints, triggers, stored procedures and application queries that would break. It is the tool that turns “what does this column touch?” from a search into a reading.

Please log in or register to report this question.

35.

Which SQL command removes a table together with all its data and its definition ?

Answer: C

Correct answer: DROP TABLE STUDENT

DROP TABLE deletes the rows and the table structure itself. DELETE removes rows subject to a WHERE clause and TRUNCATE removes all rows quickly, but both leave the empty table in place.

Please log in or register to report this question.

Answer: D

Correct answer: ALTER TABLE TableName ADD ColumnName

Adding a column is done with ALTER TABLE, and in most implementations the keyword COLUMN is optional on the ADD clause though required on DROP COLUMN. MODIFY TABLE is not a command in any dialect. Note also that a column added with a NOT NULL constraint and no default will fail on a table that already contains rows.

Please log in or register to report this question.

37.

The data model produced from the reverse engineering process is a true logical model.

Answer: B

Correct answer: False

The model produced is not a true logical model. It reflects the schema as built, including denormalisations, physical compromises and implementation artefacts, and it cannot recover the business meaning that was never recorded in the schema - intersection tables appear as ordinary entities, and optionality and cardinality often cannot be inferred. It is a starting point requiring interpretation, not a finished model.

Please log in or register to report this question.

38.

Correlated subqueries are similar to a regular subquery.

Answer: B

Correct answer: False

The two are quite different. A regular subquery is independent and evaluated once; a correlated subquery references the outer query and must be re-evaluated for every candidate row. The difference shows in the processing order, in the cost, and in what each can express - only the correlated form can compare a row against others in the same table.

Please log in or register to report this question.

Answer: C

Correct answer: Both of the above are helpful

Both belong to the same family and both are used in redesign. A correlated subquery is evaluated once for each candidate row of the outer query, which is what lets it compare a row against others in the same table - the way a functional dependency is tested. EXISTS and NOT EXISTS are the standard form such a subquery takes, since they ask only whether any matching row exists rather than what it contains.

Please log in or register to report this question.

40.

Because of the need for extensive knowledge of SQL, many database developers choose to automate the redesign process.

Answer: B

Correct answer: False

The extensive SQL knowledge required is a reason for caution rather than for automation. A generated script may be syntactically correct and still lose data or violate a business rule the tool knows nothing about, and against live data such a mistake may be irreversible. Developers therefore use tools to draft changes and then review and test them by hand.

Please log in or register to report this question.

Loading…

Other Subjects

Tags: Database Redesign Questions and Answers || Database Redesign MCQ Questions and Answers || Database Redesign GK Questions and Answers || Database Redesign GK MCQ Questions || Database Redesign Multiple Choice Questions and Answers || Database Redesign GK || GK on Database Redesign || Database Questions and Answers || Database MCQ Questions and Answers || Database GK Questions and Answers || GK on Database