on-clause Questions

22

Solved

What is the difference and what should go in each? If I understand the theory correctly, the query optimizer should be able to use both interchangeably. (Note: this question is not a duplicate of E...
Gilpin asked 9/12, 2008 at 20:14

6

Solved

SQL1: select t1.f1,t2.f2 from t1 left join t2 on t1.f1 = t2.f2 and t1.f2=1 and t1.f3=0 SQL2: select t1.f1,t2.f2 from t1 left join t2 on t1.f1 = t2.f2 where t1.f2=1 and t1.f3=0 The differe...
Phosphorite asked 29/11, 2011 at 12:58

3

Solved

I've recently discovered that the ON clause of a LEFT JOIN may contain values such as (1 = 1). This is upsetting to me, as it breaks my perception of how joins function. I've encountered a more e...
Sizar asked 7/10, 2009 at 23:18
1

© 2022 - 2024 — McMap. All rights reserved.