-
SQL Novice with stupid question...
What is the difference between the two statements below?
select
a.field1
b.field2
c.field1
a.field2
from
file1 a
file2 b
file3 c
where
a.field1 = b.field1
and b.field2 = c.field1
select
a.field1
b.field2
c.field1
a.field2
from
file1 a
join file2 b on a.field1 = b.field1
join file3 c on b.field2 = c.field1
-
Dear Stupid
Ok, I had to say it 
Your "from <- SELECTING" file1 a,file2 b,file3 c in first statement.
Your "from <- SELECTING" file1 a only in second statement.
The join statements align cursors which return ALL in the alignment.
The from statement returns only those that are in tablexxxxx.
I would need to do a map to show an example.
Read your own post two or three times.
Then if you need I'll do a visio post
Similar Threads
-
By Xors-ted in forum Database
Replies: 3
Last Post: 05-01-2008, 02:32 PM
-
By SeQuell in forum ASP.NET
Replies: 2
Last Post: 09-25-2006, 06:28 PM
-
By Gantalf in forum Database
Replies: 2
Last Post: 10-14-2002, 10:51 AM
-
By christian in forum Java
Replies: 3
Last Post: 04-05-2002, 05:20 PM
-
Replies: 3
Last Post: 05-19-2000, 02:51 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks