Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

INNER JOIN differences from ACCESS

Status
Not open for further replies.

Elliott3

Programmer
Sep 5, 2002
347
CA
Hi,
I am changing over a database from Access to SQL Server and my SQL knowledge is still minimal... Are there any differences between an INNER JOIN in Access and SQL Server?

CES
 
Mainly syntactical. You don't need to use all of those nested JOIN clauses in SQL.

Phil Hegedusich
Senior Web Developer
IIMAK
-----------
Boy howdy, my Liberal Studies degree really prepared me for this....
-----------
A skeleton walks into a bar, and says "I'll have a beer and a mop.
 
You can put an entire query in parentheses where Access would accept only a table or query name. It's called a derived table. Just use an alias.

And aliases can be in the form "Alias = Expression" and not just "Expression (AS) Alias"

Code:
SELECT *
   FROM Table A
      INNER JOIN (
         SELECT * FROM Table2 WHERE Conditions
      ) B ON A.Id = B.Id
   WHERE Conditions
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top