Syntax: SELECT TABLE1.COLUMN1,TABLE1.COLUMN2,.....TABLE2.COLUMN1,TABLE2.COLUMN2,....FROM TABLE1,TABLE2
Note:Now I want multiply EMP table with EMP table.
Select * from DEPT,DEPT
The above statement shows an error message because it not possible to multiply a table by itself with the same name,so that we to project the same table DEPT as two tables to the Sql Server. To show a single DEPT table as two tables to server we have to use the concept of table Alias Names.

No comments:
Post a Comment