633 views
2 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 1 vote
  • 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
Position:
Show:

Related questions

0 0 votes
0 0 answers
438
438 views
Chhotu asked Dec 11, 2017
438 views
Hi Guys,In what situation Update, Delete and Insert operation could be performed via view ? Please provide some kind of proof to support your answer. It will be really he...
0 0 votes
1 1 answer
449
449 views
go_editor asked Mar 26, 2020
449 views
A $WINDOW$ into a portion of a data base is :SchemaViewQueryData Dictionary
1 1 vote
1 answers 1 answer
1.2k
1.2k views
1 1 vote
2 2 answers
1.5k
1.5k views
Chaitanya Kale asked Oct 7, 2022
1,532 views
If two schedules are conflict equivalent then can we definitely say that they are also view equivalent?