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 the difference between subquery and correlated query?

526


How do I remove sql plus from windows 10?

562


How do you modify a trigger?

520


Is primary key a clustered index?

531


What is a constraint? Tell me about its various levels.

633






what are the differences between procedure-oriented languages and object-oriented languages? : Sql dba

500


what is a trigger in mysql? : Sql dba

595


What are % type and % rowtype?

567


What is sql trigger example?

533


how to run 'mysql' commands from a batch file? : Sql dba

605


What does select * from mean in sql?

1980


how to analyze tables with 'mysqlcheck'? : Sql dba

538


How to create your own reports in sql developer?

531


Which one is better subquery or joins?

550


What is a table partition?

584