February 4, 2004 at 7:53 pm
I'm trying to learn t-sql coming from an Oracle background.
Where can I learn the syntax for SELECT statents w.r.t. the LEFT JOIN, INNER JOIN, etc nomenclature that I'm not comfortable with yet!
I'm very comfortable in Oracle's SQL and PL/SQL environment and I'm trying to springboard into SQL Server land.
Your help is appreciated!
February 5, 2004 at 12:37 am
The first place to search is always Books Online (BOL). Look for SELECT or joins-SQL Server.
The next place to search (ask) is here.
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
February 10, 2004 at 3:05 am
If you know Oracle syntax, this should suffice
Left outer join
Oracle = select * from table1, table2 where table1.field1 = table2.field1 (+)
SQL = select * from table1 left outer join table2 on table1.field1 = table2.field1
Right outer join
Oracle = select * from table1, table2 where table1.field1 (+) = table2.field1
SQL = select * from table1 right outer join table2 on table1.field1 = table2.field1
Inner join
Oracle = select * from table1, table2 where table1.field1 = table2.field1
SQL = select * from table1 inner join table2 on table1.field1 = table2.field1
full outer join
Oracle = select * from table1, table2 where table1.field1 (+) = table2.field1 (+)
SQL = select * from table1 full outer join table2 on table1.field1 = table2.field1
Hope this helps, I had to make the transition from SQL to Oracle recently, so I faced similar prolems.
Stephen Marais
Integration Architect
Digiata Technologies
www.digiata.com
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply