coba kayak gini deh...
smoga membantu....
select gelar
from (select decode(substr(nama_duk,-4,1),' ',substr(nama_duk,-3,3)) gelar
from data_duk
)
where gelar is not null
________________________________
From: Padang Nadimpu <[EMAIL PROTECTED]>
To: [email protected]
Sent: Saturday, October 18, 2008 10:42:28 PM
Subject: [indo-oracle] Queri 4 huruf dari kanan ke kiri pada nama penduduk
Dear Pakar Oracle
Mohon pencerahan, query tampil (select) nama_duk dari table data_duk
dimana empat karakter dari kanan ke kiri yang ada spasinya. Misalnya
nama_duk
-----------
M. ALI MUSA MSI
M. MUSA MSC
MAHMUD MBA
ALI IMRAN
SAMSUL SOS
FAISAL MHK
ZUHRI DRG
UMAR MAHMUDI
UMAR HAMZAH
hasil yang diharapkan tampil spt di bawah ini
nama_duk
-----------
MSI
MSC
MBA
SOS
MHK
DRG
Atas pencerahannya, diucapkan terimakasih
____________ _________ _________ _________ _________ __
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail. yahoo.com
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
[Non-text portions of this message have been removed]