what is a view?

Answer Posted / sunil maurya

A view is simply the representation of a SQL statement that
is stored in memory so that it can easily be re-used. For
example, if we frequently issue the following query

SELECT empid FROM emp;

I might well want to make this a view (the reality is that
we would probably never create a view for a statement this
simple but we wanted to use an easy example).

To create a view use the create view command as seen in this
example
CREATE VIEW view_emp
AS
SELECT empid FROM emp;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to drop an index?

550


WHAT IS ecc 6.0

1673


> CREATE OR REPLACE FUNCTION FACTORIAL_1(factstr varchar2 ) 2 RETURN NUMBER AS 3 new_str VARCHAR2(4000) := factstr||'*' ; 4 fact number := 1 ; 5 BEGIN 6 7 WHILE new_str IS NOT NULL 8 LOOP 9 fact := fact * TO_NUMBER(SUBSTR(new_str,1,INSTR(new_str,'*')-1)); 10 new_str := substr( new_str,INSTR(new_str,'*')+1); 11 END LOOP; 12 13 RETURN fact; 14 15 END; explanation Above program?

1581


What is the difference between postgresql and oracle?

522


Explain the use of grant option in imp command.

586






How to upsert (update or insert into a table)?

547


What is an oracle?

589


How to use "in out" parameter properly?

628


What is flashback in Oracle?

589


What are the limitations oracle database 10g xe?

583


how to do daily transactions with out sql* loader control file regesterd in apps?

1228


What are the differences between primary key and unique key?

527


What is integrity and what is constraint??Explain with example

1711


What is a nvl function? How can it be used?

573


What is a package ? What are the advantages of package ?

615