Code for Example of cross join in Oracle
Select c.cname,i.itemname from cust c
crossjoin item I;
Output:
CNAME ITEMNAME
-------- ------------
Ashish Pendrive
Dhaval Pendrive
Dipen Pendrive
Hardik Pendrive
Jigar Pendrive
Ashish Floppy
Dhaval Floppy
Dipen Floppy
Hardik Floppy
Jigar Floppy
Ashish Cds
Dhaval Cds
Dipen Cds
Hardik Cds
Jigar Cds
Ashish Mouse
Dhaval Mouse
Dipen Mouse
Hardik Mouse
Jigar Mouse
Ashish Keyboard
Dhaval Keyboard
Dipen Keyboard
Hardik Keyboard
Jigar Keyboard