414 views
2 votes
2 votes
CREATE VIEW V AS(SELECT R1.A,R2.B FROM R AS R1, R as R2 WHERE R1.B=R2.A)

Suppose the current contents of relation R

A B
1 2
2 6
2 5
3 5

 

------------------------------------------------------------------------------------------------------------------------

How to create view? Give some instances of it

1 Answer

Best answer
1 votes
1 votes
  • A view just like a real table and a view contain row and column.

  • In your query one virtual table is created . And the name of virtual table is v.

selected by

Related questions

1 votes
1 votes
1 answer
2
1 votes
1 votes
2 answers
3
Chaitanya Kale asked Oct 7, 2022
712 views
If two schedules are conflict equivalent then can we definitely say that they are also view equivalent?
1 votes
1 votes
1 answer
4
sambey4 asked Oct 15, 2021
305 views
Find View SerializableT1 : R1(A) , R1(B) , W1(B)T2 : R2(A) , R2(B) , W2(B)