i can create a view with two columns from emp table,, later
i need to add one more emp column to existing view.. what is
query

similarly add one more column to existing primary key
constraint.. please give me the solutions

Answers were Sorted based on User's Feedback



i can create a view with two columns from emp table,, later i need to add one more emp column to e..

Answer / raghavendra

create or replace view <view_name> as select * from emp;

or you can provide the columns in select command

Is This Answer Correct ?    5 Yes 0 No

i can create a view with two columns from emp table,, later i need to add one more emp column to e..

Answer / venki

CREATE OR REPLACE VIEW VIEW_NAME AS SELECT COL1,COL2,REQ_COL
FROM EMP;

Is This Answer Correct ?    4 Yes 0 No

i can create a view with two columns from emp table,, later i need to add one more emp column to e..

Answer / prasad_dwh09

dropping and recreating of view is not i am expecting..

Is This Answer Correct ?    2 Yes 2 No

i can create a view with two columns from emp table,, later i need to add one more emp column to e..

Answer / deepu

ALTER VIEW = CREATE OR REPLACE VIEW

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Oracle General Interview Questions

I have a table like this Table Name:Products Productid Price 1 10 1 10 2 20 3 30 3 30 But i want to output like this. productid price 2 20. please replay me.

3 Answers   TCS,


Can sub procedure/function be called recursively?

0 Answers  


What is a view and how is it different from a table?

0 Answers  


Can you use a commit statement within a database trigger?

4 Answers  


Explain the difference between a procedure and a function?

0 Answers  






Is oracle an operator?

0 Answers  


what is normalisation?what are its uses?

0 Answers  


State any two functions of oracle?

0 Answers   Aricent,


what is the uses of cusor

3 Answers   Perot Systems,


What are various joins used while writing SUBQUERIES?

2 Answers  


How many objectname will be created for a single table drop function? Why 'flashback' query giving error "ORA-38312: original name is used by an existing object" while getting the table?

0 Answers  


how to retrieve daily sal from emp table in oracle 10g

2 Answers   Infosys,


Categories
  • Oracle General Interview Questions Oracle General (1789)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)