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

Discussion

A reason for using an SQL view to hide columns is:

  • A.to simplify a result only.
  • B.
    to prevent the display of sensitive data only.
  • C.to accomplish both of the above.
  • D.None of the above are reasons for using an SQL view.

Answer: C

Correct answer: to accomplish both of the above.

The same mechanism serves both purposes. Omitting columns a user does not need makes the result easier to read and to work with, and omitting columns a user should not see keeps salaries or identifiers out of reach. The user is granted rights on the view and none on the underlying table, so the restriction cannot be circumvented.

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

Post your comment

Please log in or register to post a comment.