Suppose I have to create a view on a table, that is not yet been
created by DBA. I khow the table structure. Is it possible to
create the view before DBA creates this table? If yes then how?
Is it possible to create synonym in this way?

Answer Posted / monika

Yes, we can create a view on a table that really doesn't
exist yet.We can do this by putting a word (Force) in
create view command-

create force view v1 as
select * from emp;

here view gets created but its staus is invalid,its become
valid when we create table emp(table on which view is
defined).

Is This Answer Correct ?    44 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is clustered and nonclustered index in sql?

700


How do I make my sql query run faster?

662


What are the disadvantages of file system?

828


Does sap use sql?

717


How does stored procedure reduce network traffic?

732






Can a primary key be a foreign key?

750


Does a user_objects view have an entry for a trigger?

757


Why select is used in sql?

693


What is the execution plan in sql?

758


Can we create index on primary key?

716


Explain the select statement in sql?

825


What is pivot table in sql?

739


How do you write an inner join query?

694


How do you identify a primary key?

813


What is the usage of the distinct keyword?

894