Quote:
Originally posted by sqlhelp
So if I'm reading this correctly my first two querys will not work until a "JOIN" is included?
|
Yes. When you just list the tables using SQL-89 syntax (which is what your examples show), you need to include conditions in the WHERE clause to limit the number of rows returned from the cartesian product. Otherwise if you have 500 employee rows and 2000 job rows, you'll get 1,000,000 combined rows!
A better solution in general is to use the SQL-92 syntax. It uses JOIN clauses inside of the FROM clause to specify how to join the tables. It is preferred over the older syntax because it allows more specific criteria to be applied in the join process, which makes for better SQL source and more efficient engine performance.
-PatP