![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I personally like to specify all my joins in the FROM part of a SELECT instead of using = and *= in the WHERE part. To me, this makes sense because that is what a database does: it makes all the joins between all the tables and then uses the WHERE clause to filter the joined result set. But I have two questions: given tables A, B, C, and D, is it always possible to specify the intended JOIN in the FROM clause? Or are there cases where the join conditions MUST be specified in the WHERE clause? I think Celko wrote a book which goes from the mathematical foundations of RDBMS usage? I'm interested in Prolog (logic programming) these days as well. So any book which relates logic programming, databases, and set theory and then eventually gets down into practical SQL, I would like to know about. |
#3
| |||
| |||
|
|
I personally like to specify all my joins in the FROM part of a SELECT instead of using = and *= in the WHERE part. To me, this makes sense because that is what a database does: it makes all the joins between all the tables and then uses the WHERE clause to filter the joined result set. |
|
But I have two questions: given tables A, B, C, and D, is it always possible to specify the intended JOIN in the FROM clause? Or are there cases where the join conditions MUST be specified in the WHERE clause? |
|
I think Celko wrote a book which goes from the mathematical foundations of RDBMS usage? I'm interested in Prolog (logic programming) these days as well. So any book which relates logic programming, databases, and set theory and then eventually gets down into practical SQL, I would like to know about. |
#4
| |||
| |||
|
|
I personally like to specify all my joins in the FROM part of a SELECT instead of using = and *= in the WHERE part. To me, this makes sense because that is what a database does: it makes all the joins between all the tables and then uses the WHERE clause to filter the joined result set. But I have two questions: given tables A, B, C, and D, is it always possible to specify the intended JOIN in the FROM clause? Or are there cases where the join conditions MUST be specified in the WHERE clause? |
#5
| |||
| |||
|
|
given tables A, B, C, and D, is it always possible to specify the intended JOIN in the FROM clause? Or are there cases where the join conditions MUST be specified in the WHERE clause? |
#6
| |||
| |||
|
|
I think Celko wrote a book which goes from the mathematical foundations of RDBMS usage? |
![]() |
| Thread Tools | |
| Display Modes | |
| |