I created views by CREATE VIEW lalala AS SELECT * FROM lalalala and I have two different views. How can I intersect them? view1 intersect view2 doesn’t work.
I created views by CREATE VIEW lalala AS SELECT * FROM lalalala and I
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think you might be misunderstanding the purpose of a view. A view is a sort of “derived” table, whose data depends on the data in (usually) one or more other tables. You still
SELECTfrom it in the same way as a normal table. So, for example, if you have this:then you would query this view by writing:
. . . which means that this view is, most likely, not useful; aside from questions of privileges and ownership and so on,
lalalais equivalent tolalalala.To compute the intersection of two views, you would write: