Database - Introduction to SQL - Discussion
Discussion Forum : Introduction to SQL - General Questions (Q.No. 6)
6.
A view is which of the following?
Discussion:
20 comments Page 1 of 2.
Melese alemante said:
9 years ago
Views can represent a subset of the data contained in a table. Consequently, a view can limit the degree of exposure of the underlying tables to the outer world: a given user may have permission to query the view while denied access to the rest of the base table.
Views can join and simplify multiple tables into a single virtual table.
Views can act as aggregated tables, where the database engine aggregates data (sum, average, etc. ) and presents the calculated results as part of the data.
Views can hide the complexity of data. For example, a view could appear as Sales2000 or Sales2001, transparently partitioning the actual underlying table.
Views take very little space to store; the database contains only the definition of a view, not a copy of all the data that it presents.
Depending on the SQL engine used, views can provide extra security.
Views can join and simplify multiple tables into a single virtual table.
Views can act as aggregated tables, where the database engine aggregates data (sum, average, etc. ) and presents the calculated results as part of the data.
Views can hide the complexity of data. For example, a view could appear as Sales2000 or Sales2001, transparently partitioning the actual underlying table.
Views take very little space to store; the database contains only the definition of a view, not a copy of all the data that it presents.
Depending on the SQL engine used, views can provide extra security.
(1)
Mitali said:
9 years ago
If we delete some info in virtual table will it also get deleted from base table?
Jayati nayak said:
1 decade ago
View can be of two categories:
1. Simple view.
2. Complex view.
We can restrict the dml's to be perform on the view using with read only option.
SQL> create view mvu as select empno, ename, sal, deptno from emp;
1. Simple view.
2. Complex view.
We can restrict the dml's to be perform on the view using with read only option.
SQL> create view mvu as select empno, ename, sal, deptno from emp;
Rahul Bajaj said:
1 decade ago
When any information changes in view does it get reflected in base table.
Can we change info in view and make the change in main base table also?
Will you please explain it in detail?
Can we change info in view and make the change in main base table also?
Will you please explain it in detail?
Rahul jain said:
1 decade ago
Its said as virtual table because it physically doesn't exist only the sql syntax which creates the virtual table is stored in the database. When the sql query is rendered at that time system creates a view of that table it is more secure than the direct accessible physical tables.
Abhigyan said:
1 decade ago
A view is a named table that is represented, not by its own physically separate stored data, but by its definition in terms of other named tables (base tables or views).
Ramhari Phatangare said:
1 decade ago
Virtual tables can have indices but that must be built into the virtual table implementation. They cannot be added separately using CREATE INDEX statements.
Jeet said:
1 decade ago
Virtual table is a table which does not occupy any space it link with main table. Which is create by view, we can perform any select statement on virtual table.
(1)
Arati Sharma said:
1 decade ago
A view always shows up-to-date data! The database engine recreates the data, using the view's SQL statement, every time a user queries a view.
Mithilesh Kumar said:
1 decade ago
There are two types of view:-
A) Simple view.
B) Complex view.
Simple View:
*Create view view_name
AS select * from table name where condition;
Complex View:
*Create view view_name (list of column names)
As write query.
Simple view:- It supports DML operation.
Complex view:- It does not support DML operation.
A) Simple view.
B) Complex view.
Simple View:
*Create view view_name
AS select * from table name where condition;
Complex View:
*Create view view_name (list of column names)
As write query.
Simple view:- It supports DML operation.
Complex view:- It does not support DML operation.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers