Cross Join

A Cross Join will result in a table that has every possible combination of the two tables

SELECT People.FName, TypePeople.CatName FROM People CROSS JOIN TypePeople

THE SQL above will join two tables

The tables may look like the following:
People
FName
John
Al
TypePeople
CatName
Employee
Customer
Supplier
The Resulting Table will look like this:
RESULT
FNameCatName
JohnEmployee
JohnCustomer
JohnSupplier
AlEmployee
AlCustomer
AlSupplier



Come learn HTML or Classic ASP in Honolulu, Hawaii!

HOME | SQL Tutorials | XML Tutorials | OKIWEB | EMAIL ME | ASP Alliance