In my database I want to add two views and all columns in one of them to the other.
View one:
|Col1 | Col2 |
| | |
| | |
| | |
View two:
|Col1 | Col3 | Col4| Col5 |
| | | | |
| | | | |
| | | | |
My desired result:
|Col1 | Col2 | Col3 | Col4 |
| | | | |
| | | | |
| | | | |
I have attempted this with solutions like:
SELECT Col1, Col2
FROM view1 NATURAL JOIN(
SELECT Col1, Col2, Col3, Col4
FROM view2);
Ive also tried with other joins but keep getting error that I'm missing key words.
How do I combine the tables the way I wish?
from view1 right join view2orfrom view2 left join view1).