DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2010
    Posts
    2

    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

  2. #2
    Join Date
    Oct 2010
    Posts
    22

    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

  1. SQL question
    By Xors-ted in forum Database
    Replies: 3
    Last Post: 05-01-2008, 02:32 PM
  2. Replies: 2
    Last Post: 09-25-2006, 06:28 PM
  3. Question for SQL experts !
    By Gantalf in forum Database
    Replies: 2
    Last Post: 10-14-2002, 10:51 AM
  4. a stupid question
    By christian in forum Java
    Replies: 3
    Last Post: 04-05-2002, 05:20 PM
  5. SQL Question
    By Jim in forum Database
    Replies: 3
    Last Post: 05-19-2000, 02:51 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


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


Sponsored Links