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

Discussion

Each answer below shows example data from a table. Which answer is an example of the inconsistent values problem?

  • A.Three columns have the values 534-2435, 534-7867, and 546-2356 in the same row.
  • B.Three rows have the values Brown Small Chair, Small Chair Brown, and Small Brown Chair in the same column.
  • C.Three rows have the values Brown, NULL, and Blue in the same column.
  • D.One row has the value "He is interested in a Silver Porsche from the years 1978-1988" in a column.

Answer: B

Correct answer: Three rows have the values Brown Small Chair, Small Chair Brown, and Small Brown Chair in the same column.

All three rows describe the same thing but no two strings match, so grouping, counting and joining on the column all give wrong answers. It arises wherever free text is entered without a controlled vocabulary, and the remedy is to constrain the values - by a lookup table or a check constraint - rather than to clean them repeatedly.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.