1.

Which of the following closely resembles Create view?(a) Create table . . .like(b) Create table . . . as(c) With data(d) Create view asThe question was posed to me in an interview for job.This is a very interesting question from SQL Data Types and Schemas topic in division SQL : Queries, Constraints and Triggers of Database Management

Answer»

The CORRECT CHOICE is (b) Create table . . . as

Easy explanation - The ‘create table . . . as’ statement closely resembles the create view statement and both are DEFINED by using queries. The main difference is that the contents of the table are set when the table is CREATED, whereas the contents of a view always reflect the current query result.



Discussion

No Comment Found

Related InterviewSolutions