|
|
|
|
|
by jaredsohn
1902 days ago
|
|
An argument for using the where syntax in simplish adhoc queries: It is a lot shorter and has simpler syntax. Speed is more important than maintainability in this context and it shouldn't result in errors. Basically, instead of writing "inner join table2 on" you can just write "and" and put it after your other where clauses. It doesn't result in errors because the query will fail if referring to fields from the second table when there is no join. Could even put the join where clauses on a separate line to split them out from the other where clauses. It does require reworking the query if not doing an inner join but that is what at least I usually want when doing ad hoc queries. Agree that the join syntax should be used in production code. |
|