Quote:
|
Originally Posted by rameshj6
how to create view for more than 3 tables
|
If your question is "what is the JOIN syntax for three tables", I can answer that:
Code:
CREATE VIEW v AS
(SELECT a.x, b.y, ......
FROM tbla A INNER JOIN tblb B ON a.xx = b.xx
INNER JOIN tblc C ON a.yy = c.yy
WHERE additional-condition(s)
...
)
Or with "INNER" replaced by "LEFT OUTER" or "RIGHT OUTER" or "FULL OUTER", of course.
Adding a 4th etc. Table should be obvious now.