what are views?
Answers were Sorted based on User's Feedback
Answer / pavan_1981
view is one type of database object which doesnt store any
data but fetches its data from the tables on which the view
is built.views can be of two types.one complex and other
simple.depending on type of te view different perations are
allowed on the views.
advatages:
1.views are secure because we can fetch the data from
different tables and present it to the user with cloumn
alias's so tha user wont know the actual column names or
table names.
2.instead of writing a huge join query which u most
frequently use everytime and executing it, we can create a
view using that query and just say for example "select *
from view".this inturn fetches the data u want from the
tables meeting ur requirements.
3.u can grant privilages to the user on the views instead
of giving privilages on the actual tables.this sometimes
help in security.
these are just few advantages to bgin with.still more exist.
| Is This Answer Correct ? | 19 Yes | 0 No |
Answer / annu rajput
View is a logical subset of the data.
it is not a physical storage for the data
it hides the logic through base table created.
it restrict the access to the data.
even it can make data readable.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / akn
If we have several tables in a DB and we want to view only
specific columns from specific tables we can go for
views.It would also suffice the needs of security sometimes
allowing specific users to see only specific columns based
on the permission that we can configure on the view. Views
also reduce the effort that is required for writing queries
to access specific columns every time
| Is This Answer Correct ? | 6 Yes | 5 No |
Answer / raj dhar
View is a vertual table and it does not occupy the space.
And the types of views are:-
1)Simple View
2)Complex View
3)Force View
4)Inline View
5)Read Only View
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / amadur
If we have several tables in a DB and we want to view only
specific columns from specific tables we can go for
views.It would also suffice the needs of security sometimes
allowing specific users to see only specific columns based
on the permission that we can configure on the view. Views
also reduce the effort that is required for writing queries
to access specific columns every time
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / sudipta
It is a database object that is based on a select statement
against one or more tables or other view in the database.A
regular view dose not store any data in the database only
the definition is stored.views are also known as stored
queries.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / harsha vardhan reddy
1.It is a LOGICAL and VIRTUAL object.
2.It is stored select statement.
3.It allows DESCRIBE,DML,SELECT on it.
4.It will not hold data in it.
5.It supports to share "selected rows and columns with
other user"
6.It provides security while sharing.
regards,
harsha518@gmail.com
harsha.vardhan@cmcltd.com
| Is This Answer Correct ? | 1 Yes | 3 No |
What is an Index ?
What is the quickest way to export a table to a flat file?
What is a Database instance ? Explain?
what is the difference between UNION AND UNIONALL
What is the difference between the Oracle ODBC driver and a Microsoft ODBC (Open Database Connectivity) Driver?
What would you do if a database crashes in production?
1. Display the post code and the purchase order number for each purchase order. Sort the output set by postcode.
What are synonyms used for ?
What happens if recursive calls get out of control?
How to write a left outer join with the where clause in oracle?
can anyody please send me the dump for Oracle 10g certifications for DBA path?
1. what is a single procedure? 2. suppose a view constructed on a query... after that in the master table a column was dropped, then what will be the status of that view? will it be invalid or something else? 3. what is mutating table error? how can you solve that problem? 4. suppose "select * from emp where empno=7788;" is running slow because of what ever the cause it is.. how can you fix it and make the execution faster? 5. will the snapshot of data will be stored in the RAM , where will ir be stored exactly. 6. how to delete 100 tables or 100000 tables' data from the schema without writing delete statement for no.of times. write an sql statement to do that job. 7. suppose a package contains so many cursors, procedures and all.. and we are using such types of procedures so many in a program. so the execution is to be stored all those packages and all to the RAM. utimately it is using many resources for each time execution. how can you reduce the time and using of resources for each execution because the query need to be run many times. how can you tune that? 8. suppose a procudere is there with specs as (a,b,c,d), all of these are IN mode only then while calling them should we pass all the 4 arguments? how to pass (b,c) only.. how ever the specs are wrote in the same order displayed in the above? 9. a function is returning a table type, how to access that function in a select statement? 10. i have a table in database A and another table in database B, how can you access the data of these two tables? write a query for that with dblinks. 11. i have two tables might have 15/20 columns in that.. i wanna send these columns(table) to the front end application for example you are using asp.net by writing a procedure. write that to perform the above job. 12. shall we create a table in the package? 13. shall we create a table in the procedure? 14. suppose i have 10 records, in that i want to select 7th record. write a query for that. cant you use rownum for this? 15. suppose my procedure has got around 20 select statements, in that some three select statements are running very slow. what will you write to detect which queries are running slowly? 16. what fields you use frequently in plan_table? 17. what is pipeline function? explain me with an example. 18. does a unique column can contain more than one null? 19. how many hints are there provided by oracle?