Database Management
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDatabase Management

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
  #1  
Old November 11th, 2002, 10:37 PM
apairudin apairudin is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: KL, Malaysia
Posts: 2 apairudin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
ANSI SQL-92 to Oracle

Hi guys, I have this SQL statement in ANSI SQL-92. I just found out that Oracle 8i doesn't support ANSI SQL-92 for left joins. How do I translate it to Oracle's native SQL?

Code:
select 
a.no_gaji, 
a.nama, 
a.no_kp, 
a.no_tel, 
a.staf_ketagori, 
a.trk_lahir, 
a.trk_lantikan, 
a.kod_warga, 
a.kod_jab, 
a.taraf_khidmat, 
a.no_kwsp, 
a.tkh_tamat_kontrak, 
b.gaji, c.per_jab, 
d.per_warga, 
e.per_khidmat from gaj_induk a 
left join gaj_jadual2 b on (a.kod_gaji = b.kod_gaji and a.rank_gaji = b.rank_gaji and a.t_gaji = b.t_gaji) 
left join gaj_kod_jab c on (a.kod_jab = c.kod_jab) 
left join gaj_kod_warga d on (a.kod_warga = d.kod_warga) 
left join gaj_kod_khidmat e on (a.taraf_khidmat = e.taraf_khidmat) 
where a.no_gaji = 00000790 
.

Thanks.

Reply With Quote
  #2  
Old November 12th, 2002, 03:35 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,620 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 2 Weeks 3 Days 23 h 47 m 19 sec
Reputation Power: 259
Read this article, that points out the old (non standard) and the new sql syntax for joins in Oracle.

Reply With Quote
  #3  
Old November 12th, 2002, 08:45 PM
apairudin apairudin is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: KL, Malaysia
Posts: 2 apairudin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
thanks for the article.
helped a lot.

cheers.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDatabase Management > ANSI SQL-92 to Oracle


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway