Article ID: 156667
Article Last Modified on 10/15/2003
CREATE VIEW view1 AS SELECT order_id FROM orders ;
WHERE order_id IN (SELECT order_id FROM order_line_items)
Example 1: 3 tables: tableA, tableB, tableC
CORRECT: tableA -> tableB -> tableC
CREATE VIEW view1 AS SELECT * FROM tableA ;
INNER JOIN tableB INNER JOIN tableC ON ;
tableB.linkcol = tableC.linkcol ON ;
tableA.linkcol = tableB.linkcol
Example 2: 3 tables: tableA, tableB, tableC
INCORRECT : tableA -> tableB, tableA -> tableC
CREATE VIEW view1 AS SELECT * FROM tableA ;
INNER JOIN tableB INNER JOIN tableC ON ;
ON tableA.linkcol = tableC.linkcol ON ;
tableA.linkcol = tableB.linkcol
Keywords: kbinfo kbdatabase KB156667